1/* PR c/65040 */
2/* { dg-do compile } */
3/* { dg-options "-Wformat -Wformat-signedness" } */
4
5unsigned char uc;
6signed char sc;
7unsigned short us;
8signed short ss;
9unsigned int u;
10int i;
11
12void
13foo (void)
14{
15  __builtin_printf ("%u\n", uc); /* { dg-bogus "expects argument of type" } */
16  __builtin_printf ("%u\n", sc); /* { dg-warning "expects argument of type" } */
17  __builtin_printf ("%u\n", us); /* { dg-bogus "expects argument of type" } */
18  __builtin_printf ("%u\n", ss); /* { dg-warning "expects argument of type" } */
19  __builtin_printf ("%u\n", u); /* { dg-bogus "expects argument of type" } */
20  __builtin_printf ("%u\n", i); /* { dg-warning "expects argument of type" } */
21}
22