diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/debug-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/debug-1.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/debug-1.c b/gcc/testsuite/gcc.dg/debug-1.c new file mode 100644 index 0000000..1e53b14 --- /dev/null +++ b/gcc/testsuite/gcc.dg/debug-1.c @@ -0,0 +1,14 @@ +/* Verify that the scheduler does not discard the lexical block. */ +/* { dg-do compile } */ +/* { dg-options "-O2 -g -dA" } */ +/* { dg-final { scan-assembler "xyzzy" } } */ + +long foo(long p) +{ + { + long xyzzy = 0; + if (p) + xyzzy = 2; + return xyzzy; + } +} |