Debian Codegraph @

gcc/testsuite/gcc.dg/format/pr80919.c

raw
1 /* PR c/80919 */
2 /* { dg-do compile } */
3 /* { dg-options "-Wall" } */
4
5 void
6 fn (void)
7 {
8 int a[0];
9 __builtin_printf("%d\n", &a); /* { dg-warning "expects argument of type" } */
10 __builtin_printf("%i\n", &a); /* { dg-warning "expects argument of type" } */
11
12 __builtin_printf("%o\n", &a); /* { dg-warning "expects argument of type" } */
13 __builtin_printf("%u\n", &a); /* { dg-warning "expects argument of type" } */
14 __builtin_printf("%x\n", &a); /* { dg-warning "expects argument of type" } */
15 __builtin_printf("%X\n", &a); /* { dg-warning "expects argument of type" } */
16 }