aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/poor.c
blob: 20287ef23548626b01c490e7a54f41b6da2295ec (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
25
26
27
28
29
30
31
32
33
34
35
36
/* { dg-skip-if "exceeds eBPF stack limit" { bpf-*-* } } */

typedef struct
{
	char	c[510];
} s510;

typedef struct
{
	char	c[511];
} s511;

s510	G510, s1;
s511	G511;
int	I, J;
double	D;

void main(void);
void f0(double D, ...);
s510 f1(double D, ...);
void f2a(s510 S);
void f2b(s511 S);


void main(void)
{

	f0(D, I, J);

	s1 = f1(D, I, D);

	f2a(G510);

	f2b(G511);

}