c++: Implement for namespace statics CWG 2867 - Order of initialization for structure...
[official-gcc.git] / gcc / testsuite / gcc.dg / c11-floatn-1.c
blob419f725f11dd078e7415579421e36e1e8447b438
1 /* { dg-do compile } */
2 /* { dg-options "-std=c11 -pedantic-errors" } */
3 /* { dg-add-options float32 } */
4 /* { dg-add-options float64 } */
5 /* { dg-add-options float32x } */
6 /* { dg-require-effective-target float32 } */
7 /* { dg-require-effective-target float32x } */
8 /* { dg-require-effective-target float64 } */
10 _Float32 a /* { dg-error "ISO C does not support the '_Float32' type before C23" } */
11 = 1.0F32; /* { dg-error "non-standard suffix on floating constant before C23" } */
12 _Float64 b /* { dg-error "ISO C does not support the '_Float64' type before C23" } */
13 = 1.0F64; /* { dg-error "non-standard suffix on floating constant before C23" } */
14 _Float32x c /* { dg-error "ISO C does not support the '_Float32x' type before C23" } */
15 = 1.0F32x; /* { dg-error "non-standard suffix on floating constant before C23" } */
16 __extension__ _Float32 d
17 = 2.0F32;
18 __extension__ _Float64 e
19 = 2.0F64;
20 __extension__ _Float32x f
21 = 2.0F32x;