comparison gcc/testsuite/g++.dg/warn/Wconversion-null-2.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
46 h<NULL>(); // No warning: NULL bound to integer template parameter 46 h<NULL>(); // No warning: NULL bound to integer template parameter
47 l(NULL); // No warning: NULL is used to implicitly instantiate the template 47 l(NULL); // No warning: NULL is used to implicitly instantiate the template
48 NULL && NULL; // No warning: converting NULL to bool is OK 48 NULL && NULL; // No warning: converting NULL to bool is OK
49 } 49 }
50 50
51 int warn_for___null() 51 void warn_for___null()
52 { 52 {
53 int i = __null; // { dg-warning "" } converting __null to non-pointer type 53 int i = __null; // { dg-warning "" } converting __null to non-pointer type
54 float z = __null; // { dg-warning "" } converting __null to non-pointer type 54 float z = __null; // { dg-warning "" } converting __null to non-pointer type
55 int a[2]; 55 int a[2];
56 56