1 /* { dg-do compile } */
2 /* { dg-options "-Wall" } */
4 /* N1312 7.1.1: The FLOAT_CONST_DECIMAL64 pragma.
7 Check that when pragma FLOAT_CONST_DECIMAL64 is in effect so that
8 unsuffixed constants are _Decimal64, invalid types are still reported
14 #pragma STDC FLOAT_CONST_DECIMAL64 OFF
24 #pragma STDC FLOAT_CONST_DECIMAL64 OFF
25 double a = 0x1.0p1dd; /* { dg-error "with hex" } */
26 double b = 1.0idd; /* { dg-error "invalid suffix" } */
34 #pragma STDC FLOAT_CONST_DECIMAL64 ON
35 double a = 0x1.0p1; /* Hex constant is not affected by pragma. */
36 double b = 1.0i; /* Imaginary constant is not affected by pragma. */