blob: 337550602fca29d4e024feccf392ceceba6a6cf5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
/* Test that DFP constants are accepted in C2X mode. */
/* { dg-do compile } */
/* { dg-options "-std=c2x -pedantic-errors" } */
int a = (int) 1.1DF;
int b = (int) 2.df;
int c = (int) .33DD;
int d = (int) 2e1dd;
int e = (int) .3e2DL;
int f = (int) 4.5e3dl;
int g = (int) 5.e0DF;
int h = (int) 1e+2df;
int i = (int) 1000e-3DL;
|