2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr58864.C
blobb8587f298a050f9060d396fcc89d0e6b8e531255
1 // PR target/58864
2 // { dg-do compile }
3 // { dg-options "-Os" }
4 // { dg-additional-options "-march=i686" { target { { i?86-*-* x86_64-*-* } && ia32 } } }
6 struct A { A (); ~A (); };
7 struct B { B (); };
9 float d, e;
11 void
12 foo ()
14   A a;
15   float c = d;
16   while (1)
17     {
18       B b;
19       e = c ? -c : 0;
20     }