aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c11-floatn-1.c
blob: 419f725f11dd078e7415579421e36e1e8447b438 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { 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;