2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / debug / debug-2.c
blobb164ff977349edf97af0e977b47911a318f201df
1 /* Verify that the scheduler does not discard the lexical block. */
2 /* { dg-do compile } */
3 /* { dg-options "-dA" } */
4 /* { dg-final { scan-assembler "xyzzy" } } */
6 long p;
8 long foo(void)
10 if (1)
12 long xyzzy = 0;
13 if (p)
14 xyzzy = 2;
15 return xyzzy;
17 else
19 int x = 0;
20 return x;