Home | History | Annotate | Download | only in SemaCXX

Lines Matching refs:conversion

19     return (E - I); // expected-warning {{implicit conversion loses integer precision}}
27 return x; // expected-warning {{implicit conversion loses integer precision}}
57 // This file tests -Wnull-conversion, a subcategory of -Wconversion
61 int a = NULL; // expected-warning {{implicit conversion of NULL constant to 'int'}}
63 b = NULL; // expected-warning {{implicit conversion of NULL constant to 'int'}}
65 int c = ((((NULL)))); // expected-warning {{implicit conversion of NULL constant to 'int'}}
67 d = ((((NULL)))); // expected-warning {{implicit conversion of NULL constant to 'int'}}
68 bool bl = NULL; // expected-warning {{implicit conversion of NULL constant to 'bool'}}
69 char ch = NULL; // expected-warning {{implicit conversion of NULL constant to 'char'}}
70 unsigned char uch = NULL; // expected-warning {{implicit conversion of NULL constant to 'unsigned char'}}
71 short sh = NULL; // expected-warning {{implicit conversion of NULL constant to 'short'}}
72 double dbl = NULL; // expected-warning {{implicit conversion of NULL constant to 'double'}}
79 FINIT // expected-warning {{implicit conversion of NULL constant to 'int'}}
84 bool bl2 = NULL_COND(true); // don't warn on NULL conversion through the conditional operator across a macro boundary
107 void tmpl(char c = NULL, // expected-warning 4 {{implicit conversion of NULL constant to 'char'}}
108 T a = NULL, // expected-warning {{implicit conversion of NULL constant to 'char'}} \
109 expected-warning 2 {{implicit conversion of NULL constant to 'int'}}
110 T b = 1024) { // expected-warning {{implicit conversion from 'int' to 'char' changes value from 1024 to 0}}