]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/i386/excess-precision-12.c
b44f0b5bf76763fff23c50b2e8e0cb7de97e8afe
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / i386 / excess-precision-12.c
1 /* Test C2x constexpr. Invalid code, compilation tests, excess precision. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c2x -pedantic-errors -mfpmath=387 -fexcess-precision=standard" } */
4
5 constexpr double d = 1.0 / 3.0; /* { dg-error "'constexpr' initializer not representable in type of object" } */
6 constexpr double d2 = 1.1; /* { dg-error "'constexpr' initializer not representable in type of object" } */