2 // { dg-options "-Wconversion -Wno-conversion-null -Wno-pointer-arith" }
30 int i = NULL; // converting NULL to non-pointer type
31 float z = NULL; // converting NULL to non-pointer type
34 i != NULL; // NULL used in arithmetic
35 NULL != z; // NULL used in arithmetic
36 k != NULL; // No warning: decay conversion
37 NULL != a; // Likewise.
38 -NULL; // converting NULL to non-pointer type
39 +NULL; // converting NULL to non-pointer type
40 ~NULL; // converting NULL to non-pointer type
41 a[NULL] = 3; // converting NULL to non-pointer-type
42 i = NULL; // converting NULL to non-pointer type
43 z = NULL; // converting NULL to non-pointer type
44 k(NULL); // converting NULL to int
45 g(NULL); // converting NULL to int
46 h<NULL>(); // No warning: NULL bound to integer template parameter
47 l(NULL); // converting NULL to int
48 NULL && NULL; // No warning: converting NULL to bool is OK