view gcc/testsuite/gcc.dg/c2x-no-dfp-1.c @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
line wrap: on
line source

/* Test DFP types and constants rejected if no DFP support.  Bug
   91985.  */
/* { dg-do compile { target { ! dfp } } } */
/* { dg-options "-std=c2x" } */

_Decimal32 d32a; /* { dg-error "not supported" } */
_Decimal64 d64a; /* { dg-error "not supported" } */
_Decimal128 d128a; /* { dg-error "not supported" } */

_Bool d32b = 1.0DF; /* { dg-error "not supported" } */
_Bool d64b = 1.0DD; /* { dg-error "not supported" } */
_Bool d128b = 1.0DL; /* { dg-error "not supported" } */