aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/c11-floatn-3.c
blob: b4587d3036afa64f062c93b25093b21c6cc57e1d (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
/* { dg-options "-std=c11 -pedantic-errors" } */
/* { dg-add-options float16 } */
/* { dg-require-effective-target float16 } */

_Float16 a		/* { dg-error "ISO C does not support the '_Float16' type before C23" } */
  = 1.0F16;		/* { dg-error "non-standard suffix on floating constant before C23" } */
__extension__ _Float16 b
  = 2.0F16;