* c-c++-common/ubsan/float-cast-overflow-6.c: Add i?86-*-* target.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr48134.c
blob8dc5a6d0d412618d2a2ca0e5a4a9b43706fbc99f
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fstack-check=specific -fno-tree-dse -fno-tree-fre -fno-tree-loop-optimize -g" } */
4 struct S
6 int w, z;
7 };
8 struct T
10 struct S s;
13 int i;
15 static inline struct S
16 bar (struct S x)
18 i++;
19 return x;
22 int
23 foo (struct T t, struct S s)
25 struct S *c = &s;
26 if (i)
27 c = &t.s;
28 t.s.w = 3;
29 s = bar (*c);
30 return t.s.w;