Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / dfp / c11-constants-1.c
blob472ed25f8cfcd1667dc00f38abdbd0433f6d3f6d
1 /* Test that DFP constants are diagnosed in C11 mode: -pedantic. */
2 /* { dg-do compile } */
3 /* { dg-options "-std=c11 -pedantic" } */
5 int a = (int) 1.1DF; /* { dg-warning "C2X feature" } */
6 int b = (int) 2.df; /* { dg-warning "C2X feature" } */
7 int c = (int) .33DD; /* { dg-warning "C2X feature" } */
8 int d = (int) 2e1dd; /* { dg-warning "C2X feature" } */
9 int e = (int) .3e2DL; /* { dg-warning "C2X feature" } */
10 int f = (int) 4.5e3dl; /* { dg-warning "C2X feature" } */
11 int g = (int) 5.e0DF; /* { dg-warning "C2X feature" } */
12 int h = (int) 1e+2df; /* { dg-warning "C2X feature" } */
13 int i = (int) 1000e-3DL; /* { dg-warning "C2X feature" } */