1 /* Floating constants outside the range of their type should receive a
2 pedwarn, not a warning. */
3 /* Origin: Joseph Myers <jsm@polyomino.org.uk> */
4 /* { dg-do compile } */
5 /* { dg-options "-ansi -pedantic-errors" } */
10 float a
= 1e+100000000f
; /* { dg-error "error: floating constant exceeds range of 'float'" } */
11 double b
= 1e+100000000; /* { dg-error "error: floating constant exceeds range of 'double'" } */
12 long double c
= 1e+100000000l; /* { dg-error "error: floating constant exceeds range of 'long double'" } */