aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/debug/debug-1.c
blob: b6faed0451962e239d4ee28f2a10416a2bcdea17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Verify that the scheduler does not discard the lexical block.  */
/* { dg-do compile } */
/* { dg-options "-dA" } */
/* APPLE LOCAL xfail for Apple only, serena */
/* { dg-final { scan-assembler "xyzzy" { xfail *-apple-darwin* } } } */

long p;

long foo(void)
{
  {
    long xyzzy = 0;
    if (p)
      xyzzy = 2;
    return xyzzy;
  }
}