OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [20040721-1.c] - Blame information for rev 298

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.