gcc/testsuite/gcc.c-torture/compile/stuct.c
raw| 1 | /* { dg-add-options stack_size } */ |
| 2 | |
| 3 | #ifdef STACK_SIZE |
| 4 | #define SIZE STACK_SIZE / 8 |
| 5 | #else |
| 6 | #define SIZE 10000000 |
| 7 | #endif |
| 8 | |
| 9 | struct foo |
| 10 | { |
| 11 | int a, b, c; |
| 12 | int arr[SIZE]; |
| 13 | }; |
| 14 | |
| 15 | struct foo s, ss; |
| 16 | |
| 17 | int |
| 18 | main (void) |
| 19 | { |
| 20 | |
| 21 | s.b = 2; |
| 22 | s.c = 3; |
| 23 | ss.b = 2; |
| 24 | ss.c = 3; |
| 25 | } |