OSDN Git Service

e11b7b0fc1f189b738db83f7aa3043996528a5ce
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / debug / debug-2.c
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" } } */
5
6 long foo(long p)
7 {
8   if (1)
9     {
10       long xyzzy = 0;
11       if (p)
12         xyzzy = 2;
13       return xyzzy;
14     }
15   else
16     {
17       int x = 0;
18       return x;
19     }
20 }