PR tree-optimization/81303
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr27799.c
blobde09a40e08b34230ae9d088bd9c144cebb4db48b
1 /* { dg-do link } */
2 /* { dg-options "-O2" } */
4 struct X { double m; int x; };
5 struct Y { int y; short d; };
6 struct YY { int y; short d; char c; };
8 extern void link_error (void);
10 int foo(struct X *x, struct Y *y)
12 x->x = 0;
13 y->y = 1;
14 if (x->x != 0)
15 link_error ();
18 int foo_no(struct X *x, struct YY *y)
20 x->x = 0;
21 y->y = 1;
22 if (x->x != 0)
23 link_error ();
26 int main() {}