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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr36373-6.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-fno-tree-sra" } */
3
 
4
extern void abort (void);
5
struct Foo {
6
    int *p;
7
} x;
8
struct Foo __attribute__((noinline))
9
bar(int *p)
10
{
11
  struct Foo f;
12
  f.p = p;
13
  return f;
14
}
15
void __attribute__((noinline))
16
foo()
17
{
18
  *x.p = 0;
19
}
20
int main()
21
{
22
  int b;
23
  b = 1;
24
  struct Foo g = bar (&b);
25
  x = g;
26
  foo();
27
  if (b != 0)
28
    abort ();
29
  return 0;
30
}

powered by: WebSVN 2.1.0

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