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

Subversion Repositories openrisc

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

Go to most recent revision | 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
void __attribute__((noinline))
8
foo()
9
{
10
  *x.p = 0;
11
}
12
int main()
13
{
14
  int b;
15
  struct Foo g;
16
  b = 1;
17
  g.p = &b;
18
  x = g;
19
  foo();
20
  if (b != 0)
21
    abort ();
22
  return 0;
23
}

powered by: WebSVN 2.1.0

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