* gcc.dg/torture/stackalign/builtin-apply-2.c: Fix skip-if syntax.
[official-gcc.git] / gcc / testsuite / gcc.dg / dfp / pragma-float-const-decimal64-6.c
blob03c1715bee660b6aad2e86c53d2499542d2a34db
1 /* { dg-do compile } */
2 /* { dg-options "-std=c99 -pedantic-errors" } */
4 /* N1312 7.1.1: The FLOAT_CONST_DECIMAL64 pragma.
5 C99 6.4.4.2a (New).
7 Check that there is a pedantic error for the use of pragma
8 STD FLOAT_CONST_DECIMAL64. */
10 double a;
12 void f1 (void)
14 #pragma STDC FLOAT_CONST_DECIMAL64 ON /* { dg-error "ISO C" } */
15 a = 1.0;
18 void f2 (void)
20 #pragma STDC FLOAT_CONST_DECIMAL64 OFF /* { dg-error "ISO C" } */
21 a = 2.0;
24 void f3 (void)
26 #pragma STDC FLOAT_CONST_DECIMAL64 DEFAULT /* { dg-error "ISO C" } */
27 a = 3.0;
30 void f4 (void)
32 _Pragma ("STDC FLOAT_CONST_DECIMAL64 ON") /* { dg-error "ISO C" } */
33 a = 1.0;
36 void f5 (void)
38 _Pragma ("STDC FLOAT_CONST_DECIMAL64 OFF") /* { dg-error "ISO C" } */
39 a = 2.0;
42 void f6 (void)
44 _Pragma ("STDC FLOAT_CONST_DECIMAL64 DEFAULT") /* { dg-error "ISO C" } */
45 a = 3.0;