1 /* { dg-do compile } */
2 /* { dg-options "-std=gnu99 -Wall" } */
4 /* N1312 7.1.1: The FLOAT_CONST_DECIMAL64 pragma.
7 /* Check that defining macros whose names are the same as the tokens used
8 in the pragma doesn't affect use of the pragma. */
14 #define FLOAT_CONST_DECIMAL64 NEW_PRAGMA
21 #pragma STDC FLOAT_CONST_DECIMAL64 ON
28 #pragma STDC FLOAT_CONST_DECIMAL64 OFF
35 #pragma STDC FLOAT_CONST_DECIMAL64 DEFAULT
39 /* Check that a macro can be used for the entire pragma. */
41 #define PRAGMA(x) _Pragma (#x)
42 #define DEFAULT_FLOAT_IS_DECIMAL PRAGMA(STDC FLOAT_CONST_DECIMAL64 ON)
43 #define DEFAULT_FLOAT_IS_BINARY PRAGMA(STDC FLOAT_CONST_DECIMAL64 OFF)
48 DEFAULT_FLOAT_IS_DECIMAL
55 DEFAULT_FLOAT_IS_BINARY
59 /* _Pragma can be used with macros, including the use of a macro for the
66 #undef FLOAT_CONST_DECIMAL64
69 #define FLOAT_CONST_DECIMAL64(x) PRAGMA(STDC FLOAT_CONST_DECIMAL64 x)
74 FLOAT_CONST_DECIMAL64(SWITCH
)
81 FLOAT_CONST_DECIMAL64(OFF
)