Lines Matching refs:input
18 void test(TestEnum input) {
19 printf("%hhd", input); // expected-warning{{format specifies type 'char' but the argument has underlying type 'short'}}
22 printf("%hd", input); // no-warning
26 printf("%d", input); // no-warning
29 printf("%lld", input); // expected-warning{{format specifies type 'long long' but the argument has underlying type 'short'}}
36 void testLong(LongEnum input) {
37 printf("%u", input); // expected-warning{{format specifies type 'unsigned int' but the argument has underlying type 'unsigned long'}}
40 printf("%lu", input);
48 void testUnderlyingTypedef(ShortEnum input) {
49 printf("%hhd", input); // expected-warning{{format specifies type 'char' but the argument has underlying type 'short_t' (aka 'short')}}
52 printf("%hd", input); // no-warning
56 printf("%d", input); // no-warning
59 printf("%lld", input); // expected-warning{{format specifies type 'long long' but the argument has underlying type 'short_t' (aka 'short')}}
66 void testTypedefChain(ShortEnum2 input) {
67 printf("%hhd", input); // expected-warning{{format specifies type 'char' but the argument has underlying type 'short_t' (aka 'short')}}
68 printf("%hd", input); // no-warning
69 printf("%d", input); // no-warning
70 printf("%lld", input); // expected-warning{{format specifies type 'long long' but the argument has underlying type 'short_t' (aka 'short')}}
78 void testChar(CharEnum input) {
79 printf("%hhd", input); // no-warning
83 printf("%hd", input); // expected-warning{{format specifies type 'short' but the argument has underlying type 'char'}}
87 printf("%d", input); // no-warning
90 printf("%lld", input); // expected-warning{{format specifies type 'long long' but the argument has underlying type 'char'}}