aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/stuct.c
blob: b70957e9891c0114dad4b2d3aecb13aee6be2854 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* { dg-add-options stack_size } */

#ifdef STACK_SIZE
#define SIZE STACK_SIZE / 8
#else
#define SIZE 10000000
#endif

struct foo
{
  int a, b, c;
  int arr[SIZE];
};

struct foo s, ss;

main ()
{

  s.b = 2;
  s.c = 3;
  ss.b = 2;
  ss.c = 3;
}