* tree-loop-distribution.c (struct partition): New field recording
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / nested-1.c
blob135538a8524a154b6a04f2b601f876a471742925
1 /* { dg-require-effective-target trampolines } */
3 typedef __SIZE_TYPE__ size_t;
4 extern int printf (const char *, ...);
5 extern void *memset (void *, int, size_t);
7 int bar (int (*)(), int, void *);
9 int
10 main(int argc, char **argv)
12 struct s { int a; char b[argc]; };
13 int nested (struct s x) { return x.a + sizeof(x); }
14 struct s t;
15 memset (&t, 0, sizeof(t));
16 t.a = 123;
17 printf("%d\n", bar (nested, argc, &t));
18 return 0;