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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr36373-7.c] - Blame information for rev 689

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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