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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [20040721-1.c] - Blame information for rev 437

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do link } */
2
/* { dg-options "-O2" } */
3
 
4
/* Test to check whether global variables are being
5
   constant propagated. */
6
 
7
extern void link_error (void);
8
 
9
int G;
10
 
11
void
12
foo (int i)
13
{
14
   if (i > 0)
15
     G = 3;
16
   else
17
     G = 3;
18
 
19
   if (G != 3)
20
     link_error ();
21
}
22
 
23
int
24
main ()
25
{
26
   foo (0);
27
   return 0;
28
}
29
 

powered by: WebSVN 2.1.0

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