blob: 419f725f11dd078e7415579421e36e1e8447b438 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-std=c11 -pedantic-errors" } */
/* { dg-add-options float32 } */
/* { dg-add-options float64 } */
/* { dg-add-options float32x } */
/* { dg-require-effective-target float32 } */
/* { dg-require-effective-target float32x } */
/* { dg-require-effective-target float64 } */
_Float32 a /* { dg-error "ISO C does not support the '_Float32' type before C23" } */
= 1.0F32; /* { dg-error "non-standard suffix on floating constant before C23" } */
_Float64 b /* { dg-error "ISO C does not support the '_Float64' type before C23" } */
= 1.0F64; /* { dg-error "non-standard suffix on floating constant before C23" } */
_Float32x c /* { dg-error "ISO C does not support the '_Float32x' type before C23" } */
= 1.0F32x; /* { dg-error "non-standard suffix on floating constant before C23" } */
__extension__ _Float32 d
= 2.0F32;
__extension__ _Float64 e
= 2.0F64;
__extension__ _Float32x f
= 2.0F32x;