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.c-torture/] [execute/] [pr39120.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 297 jeremybenn
struct X { int *p; } x;
2
 
3
struct X __attribute__((noinline))
4
foo(int *p) { struct X x; x.p = p; return x; }
5
 
6
void __attribute((noinline))
7
bar() { *x.p = 1; }
8
 
9
extern void abort (void);
10
int main()
11
{
12
  int i = 0;
13
  x = foo(&i);
14
  bar();
15
  if (i != 1)
16
    abort ();
17
  return 0;
18
}

powered by: WebSVN 2.1.0

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