1 // PR c++/91705 - constexpr evaluation rejects ++/-- on floats.
2 // { dg-do compile { target c++14 } }
4 #define SA(X) static_assert((X),#X)
12 constexpr float fn2(float t)
23 constexpr float fn4(float t)
34 constexpr float fn6(float t)
45 constexpr float fn8(float t)
50 constexpr double r1 = fn1(2.0f);
52 constexpr double r2 = fn2(2.0f);
54 constexpr double r3 = fn3(2.0f);
56 constexpr double r4 = fn4(2.0f);
59 constexpr double r5 = fn5(2.0f);
61 constexpr double r6 = fn6(2.0f);
63 constexpr double r7 = fn7(2.0f);
65 constexpr double r8 = fn8(2.0f);