Debian Codegraph @

gcc/testsuite/gcc.c-torture/compile/pr117358.c

raw
1 /* PR tree-optimization/117358 */
2
3 char a;
4 /* This attribute is bogus, snprintf isn't const. Just verify we don't ICE on it. */
5 int __attribute__((const)) snprintf (char *, __SIZE_TYPE__, const char *, ...);
6
7 long
8 foo (long d)
9 {
10 return snprintf (&a, d, "");
11 }
12
13 int
14 bar (void)
15 {
16 return foo (1);
17 }