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

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