Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / uninit-pr100732.c
blob9c847ce1fa84599b1a10d0b615033d187b8808a4
1 /* PR middle-end/100732 - ICE on sprintf %s with integer argument
2 { dg-do compile }
3 { dg-options "-O2 -Wall -fdump-tree-optimized" } */
5 void nowarn_s_i (char *d, int i)
7 __builtin_sprintf (d, "%s", i); // { dg-warning "\\\[-Wformat" }
10 void warn_s_i (char *d)
12 int i;
13 __builtin_sprintf (d, "%s", i); // { dg-warning "\\\[-Wformat" }
14 // { dg-warning "\\\[-Wuninitialized" "" { target *-*-* } .-1 }
17 void warn_i_i (char *d)
19 int i;
20 __builtin_sprintf (d, "%i", i); // { dg-warning "\\\[-Wuninitialized" }