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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20050929-1.c] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
/* PR middle-end/24109 */
2
 
3
extern void abort (void);
4
 
5
struct A { int i; int j; };
6
struct B { struct A *a; struct A *b; };
7
struct C { struct B *c; struct A *d; };
8
struct C e = { &(struct B) { &(struct A) { 1, 2 }, &(struct A) { 3, 4 } }, &(struct A) { 5, 6 } };
9
 
10
int
11
main (void)
12
{
13
  if (e.c->a->i != 1 || e.c->a->j != 2)
14
    abort ();
15
  if (e.c->b->i != 3 || e.c->b->j != 4)
16
    abort ();
17
  if (e.d->i != 5 || e.d->j != 6)
18
    abort ();
19
  return 0;
20
}

powered by: WebSVN 2.1.0

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