PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.dg / pr57287.c
blob47ed5b7988605633129949d612ac33ac9a89b49e
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wall" } */
3 /* { dg-require-effective-target indirect_jumps } */
5 #include <setjmp.h>
7 jmp_buf buf;
9 void foo (int);
10 void bar (int) __attribute__((leaf));
12 void enumerate_locals (int indent)
14 foo (0);
15 while (indent--)
17 int local_indent = 8 + (8 * indent);
18 if (local_indent != 8)
20 setjmp (buf);
21 bar (local_indent); /* { dg-bogus "may be used uninitialized" } */
24 foo (1);