PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / float1.C
blob8f26ed5c852c31c763476a37ed44f5e56427f275
1 // PR optimization/11637
2 // Origin: <nick@ilm.com>
4 // This used to fail to assemble on x86 because a decimal
5 // floating point litteral was emitted, which originated
6 // from a bogus REG_EQUAL note not removed by the combiner.
8 // { dg-do assemble }
9 // { dg-options "-O2 -fnon-call-exceptions" }
11 void f(long int seed);
13 void g(float &o)
15   float a = 0.05f;
16   float b = 1.0 - a;
17   float c = 1.0 + a;
19   f(0);
20   o = a;