Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.c-torture/compile/stuct.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 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 main () | |
18 { | |
19 | |
20 s.b = 2; | |
21 s.c = 3; | |
22 ss.b = 2; | |
23 ss.c = 3; | |
24 } |