summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/fltconst-pedantic-dfp.c
blob: 6ff3091ce6a84a53ab049555ed1fee11264a99f5 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
/* { dg-options "-pedantic" } */

double a = 1.dl;	/* { dg-warning "decimal float" } */
/* { dg-error "not supported for this target" "not supported" { target { ! dfp } } .-1 } */
double b = 1.df;	/* { dg-warning "decimal float" } */
/* { dg-error "not supported for this target" "not supported" { target { ! dfp } } .-1 } */
double c = 1.dd;	/* { dg-warning "decimal float" } */
/* { dg-error "not supported for this target" "not supported" { target { ! dfp } } .-1 } */