re PR c/58346 (ICE with SIGFPE at -O1 and above on x86_64-linux-gnu (affecting trunk...
[gcc.git] / gcc / testsuite / gcc.dg / pr58346.c
1 /* PR tree-optimization/58346 */
2 /* { dg-do compile } */
3 /* { dg-options "-O" } */
4
5 struct U {};
6 static struct U b[1] = { };
7 extern void bar (struct U);
8
9 void
10 foo (void)
11 {
12 bar (b[0]);
13 }
14
15 void
16 baz (void)
17 {
18 foo ();
19 }