summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/fltconst-double-pedantic-2.c
blob: 316571f762f14573389a8d51f638664f4c2b88b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-std=c99 -pedantic-errors" } */

double a = 1.d;		/* { dg-error "double constant" } */
double b = 1.D;		/* { dg-error "double constant" } */
double c = 1.1e+2d;	/* { dg-error "double constant" } */

double d = 1.di;	/* { dg-error "imaginary constants" } */
double e = 1.dj;	/* { dg-error "imaginary constants" } */
double f = 1.id;	/* { dg-error "imaginary constants" } */
double g = 1.jd;	/* { dg-error "imaginary constants" } */

double h = 0x1.5p1d;	/* { dg-error "double constant" } */