LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / pr42078.c
blob8107ff5557a5d86e3be40258bc928c6b806b82e5
1 /* PR tree-optimization/42078 */
2 /* { dg-do compile } */
3 /* { dg-options "-g -O -ffast-math" } */
5 double sqrt (double x);
7 float
8 foo (float x)
10 float y = sqrt (x);
11 return x / y;
14 inline float
15 bar (float x)
17 float y = sqrt (x);
18 float a = y;
19 float b = y;
20 float c = y;
21 return x / y;