Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / c-c++-common / pr57793.c
blobf2719529ebb2feb7b0c06c1c28f17bf17703c254
1 /* PR c++/57793 */
3 struct A { unsigned a : 1; unsigned b : 1; };
4 struct B /* { dg-error "type .B. is too large" "" { target { c++ && ilp32 } } } */
6 unsigned char c[0x40000000]; /* { dg-error "size of array .c. is too large" "" { target { ! int32plus } } } */
7 unsigned char d[0x40000ff0];/* { dg-error "size of array .d. is too large" "" { target { ! int32plus } } } */
8 struct A e;
9 }; /* { dg-error "type .struct B. is too large" "" { target { c && ilp32 } } } */
11 void *foo (struct B *p)
13 if (p->e.a)
14 return (void *) 0;
15 p->e.b = 1;
16 return p->c;
19 void
20 bar (struct B *p)
22 foo (p);