Merge from mainline (163495:164578).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / struct / wo_prof_empty_str.c
blob09668face34d18c063911c1da8567dd9e60a0338
1 /* { dg-do run } */
3 #include <stdlib.h>
5 struct S { int a; struct V *b; };
6 typedef struct { int c; } T;
7 typedef struct { int d; int e; } U;
9 void *
10 fn (void *x)
12 return x;
15 int
16 foo (struct S *s)
18 T x;
20 T y = *(T *)fn (&x);
21 return y.c;
24 int
25 bar (struct S *s)
27 U x;
29 U y = *(U *)fn (&x);
30 return y.d + s->a;
33 int
34 main ()
36 struct S s;
38 foo(&s) + bar (&s);
40 return 0;
43 /*--------------------------------------------------------------------------*/
44 /* { dg-final { scan-ipa-dump "No structures to transform" "ipa_struct_reorg" { xfail *-*-* } } } */
45 /* { dg-final { cleanup-ipa-dump "*" } } */