OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [debug/] [debug-2.c] - Blame information for rev 149

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* 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
 
10
long 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.