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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [20000623-1.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-O3 -fno-strict-aliasing" } */
3
 
4
extern void exit (int);
5
extern void abort (void);
6
 
7
struct foos { int l; };
8
int foo;
9
static struct foos *getfoo(void);
10
int main (void)
11
{
12
  struct foos *f = getfoo();
13
  f->l = 1;
14
  foo = 2;
15
  if (f->l == 1)
16
    abort();
17
  exit(0);
18
}
19
static struct foos *getfoo(void)
20
{ return (struct foos *)&foo; }

powered by: WebSVN 2.1.0

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