blob: 1e86f2fc706172e03ff2e203209dfb97ab0645f1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* Verify that the scheduler does not discard the lexical block. */
/* { dg-do compile } */
/* { dg-options "-dA" } */
/* See the comment in debug-1.c. */
/* { dg-options "-dA -fno-if-conversion" { target mips*-*-* } } */
/* { dg-final { scan-assembler "xyzzy" } } */
long p;
long foo(void)
{
if (1)
{
long xyzzy = 0;
if (p)
xyzzy = 2;
return xyzzy;
}
else
{
int x = 0;
return x;
}
}
|