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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20101025-1.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
static int g_7;
2
static int *volatile g_6 = &g_7;
3
int g_3;
4
 
5
static int f1 (int *p_58)
6
{
7
    return *p_58;
8
}
9
 
10
void f2 (int i) __attribute__ ((noinline));
11
void f2 (int i)
12
{
13
  g_3 = i;
14
}
15
 
16
int f3 (void) __attribute__ ((noinline));
17
int f3 (void)
18
{
19
    *g_6 = 1;
20
    f2 (f1 (&g_7));
21
    return 0;
22
}
23
 
24
int main ()
25
{
26
  f3 ();
27
  if (g_3 != 1)
28
    abort ();
29
  exit (0);
30
}

powered by: WebSVN 2.1.0

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