gcc/testsuite/gcc.target/i386/excess-precision-12.c
raw| 1 | /* Test C23 constexpr. Invalid code, compilation tests, excess precision. */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-options "-std=c23 -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" } */ |