2013-05-24 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr57287.c
blob72225b1193144dfbffe4f12e33e18d4f25ac8127
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -Wall" } */
4 #include <setjmp.h>
6 jmp_buf buf;
8 void foo (int);
9 void bar (int) __attribute__((leaf));
11 void enumerate_locals (int indent)
13 foo (0);
14 while (indent--)
16 int local_indent = 8 + (8 * indent);
17 if (local_indent != 8)
19 setjmp (buf);
20 bar (local_indent); /* { dg-bogus "may be used uninitialized" "" } */
23 foo (1);