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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [struct-alias-1.c] - Blame information for rev 801

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do link } */
2
/* { dg-options "-O2" } */
3
 
4
struct S {
5
   int a[3];
6
   int x;
7
};
8
 
9
extern void link_error(void);
10
static int i;
11
 
12
int main()
13
{
14
  struct S s;
15
 
16
  s.x = 0;
17
  s.a[i] = 1;
18
  if (s.x != 0)
19
    link_error ();
20
 
21
  return 0;
22
}

powered by: WebSVN 2.1.0

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