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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr36093.c] - Blame information for rev 308

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

Line No. Rev Author Line
1 297 jeremybenn
extern void abort (void);
2
 
3
typedef struct Bar {
4
      char c[129];
5
} Bar __attribute__((__aligned__(128)));
6
 
7
typedef struct Foo {
8
      Bar bar[4];
9
} Foo;
10
 
11
Foo foo[4];
12
 
13
int main()
14
{
15
   int i, j;
16
   Foo *foop = &foo[0];
17
 
18
   for (i=0; i < 4; i++) {
19
      Bar *bar = &foop->bar[i];
20
      for (j=0; j < 129; j++) {
21
         bar->c[j] = 'a' + i;
22
      }
23
   }
24
 
25
   if (foo[0].bar[3].c[128] != 'd')
26
     abort ();
27
   return 0;
28
}

powered by: WebSVN 2.1.0

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