Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / builtin-snprintf-1.c
blob202e009d7cfcc06830e0d1502087cbc8fc8bba9e
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fprintf-return-value -fdump-tree-optimized" } */
3 /* { dg-final { scan-tree-dump-not "__builtin_snprintf" "optimized"} } */
5 int
6 foo (void)
8 int a = __builtin_snprintf (0, 0, "%s", "abcdefgh");
9 return a;
12 void
13 bar (void)
15 __builtin_snprintf (0, 0, "%s", "abcdefgh");