| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -Wall -Wextra" } */ |
| 3 |
|
| 4 |
extern int printf (const char *, ...); |
| 5 |
|
| 6 |
# define PRIu32 "u" |
| 7 |
|
| 8 |
void test (const char *msg) |
| 9 |
{ |
| 10 |
printf ("size: %" PRIu32 "\n", msg); /* { dg-warning "expects argument of type" } */ |
| 11 |
} |