aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/opt/pr58864.C
blob: b8587f298a050f9060d396fcc89d0e6b8e531255 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// PR target/58864
// { dg-do compile }
// { dg-options "-Os" }
// { dg-additional-options "-march=i686" { target { { i?86-*-* x86_64-*-* } && ia32 } } }

struct A { A (); ~A (); };
struct B { B (); };

float d, e;

void
foo ()
{
  A a;
  float c = d;
  while (1)
    {
      B b;
      e = c ? -c : 0;
    }
}