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" } } */ 7 8 long p; 9 foo(void)10long foo(void) 11 { 12 if (1) 13 { 14 long xyzzy = 0; 15 if (p) 16 xyzzy = 2; 17 return xyzzy; 18 } 19 else 20 { 21 int x = 0; 22 return x; 23 } 24 } 25