Lines Matching refs:input

18 void test(TestEnum input) {
19 printf("%hhd", input); // expected-warning{{format specifies type 'char' but the argument has type 'TestEnum'}}
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 type 'TestEnum'}}
36 void testLong(LongEnum input) {
37 printf("%u", input); // expected-warning{{format specifies type 'unsigned int' but the argument has type 'LongEnum'}}
40 printf("%lu", input);
48 void testUnderlyingTypedef(ShortEnum input) {
49 printf("%hhd", input); // expected-warning{{format specifies type 'char' but the argument has type 'ShortEnum'}}
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 type 'ShortEnum'}}
66 void testTypedefChain(ShortEnum2 input) {
67 printf("%hhd", input); // expected-warning{{format specifies type 'char' but the argument has type 'ShortEnum2' (aka 'ShortEnum')}}
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 type 'ShortEnum2' (aka 'ShortEnum')}}
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 type 'CharEnum'}}
87 printf("%d", input); // no-warning
90 printf("%lld", input); // expected-warning{{format specifies type 'long long' but the argument has type 'CharEnum'}}