gcc/
[official-gcc.git] / gcc / testsuite / gcc.dg / debug / debug-2.c
blob1e86f2fc706172e03ff2e203209dfb97ab0645f1
1 /* Verify that the scheduler does not discard the lexical block. */
2 /* { dg-do compile } */
3 /* { dg-options "-dA" } */
4 /* See the comment in debug-1.c. */
5 /* { dg-options "-dA -fno-if-conversion" { target mips*-*-* } } */
6 /* { dg-final { scan-assembler "xyzzy" } } */
8 long p;
10 long foo(void)
12 if (1)
14 long xyzzy = 0;
15 if (p)
16 xyzzy = 2;
17 return xyzzy;
19 else
21 int x = 0;
22 return x;