]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/pr41837.c
replace ISL with isl
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr41837.c
CommitLineData
a1c65695
JJ
1/* PR middle-end/41837 */
2/* { dg-do compile } */
3/* { dg-options "-fipa-struct-reorg -O -fwhole-program -fprofile-generate" } */
4
5typedef struct { int a, b; } T1;
6typedef struct S1 *T2;
7typedef struct S2 *T3;
8typedef struct S3 *T4;
9typedef struct S4 *T5;
10struct S4 { union { int c; } d; };
11struct S2 { int e; T2 f; int g; };
12typedef struct { T3 h; } T6;
13typedef struct { int i; } *T7;
14struct S3 { T6 j; T7 k; };
15
8ece1ab3
MP
16void f5 (T4);
17void f6 (void (*)(T4));
18void f7 (void (*)(T5, T1 *));
19
a1c65695
JJ
20void
21f1 (T4 x)
22{
23 if (!x->j.h->e)
24 f5 (x);
25}
26
27void
28f2 (void)
29{
30 f6 (f1);
31}
32
33void
34f3 (T5 x, T1 *y)
35{
36}
37
38void
39f4 (void)
40{
41 f7 (f3);
42}