bd52d17906
too large to list, but see: http://gcc.gnu.org/gcc-3.4/changes.html http://gcc.gnu.org/gcc-4.0/changes.html http://gcc.gnu.org/gcc-4.1/changes.html for the details.
15 lines
643 B
C
15 lines
643 B
C
/* Floating constants outside the range of their type should receive a
|
|
pedwarn, not a warning. This includes INFINITY if the target does
|
|
not support infinities. */
|
|
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
|
|
/* { dg-do compile { target vax-*-* pdp11-*-* } } */
|
|
/* { dg-options "-ansi -pedantic-errors" } */
|
|
|
|
void
|
|
f (void)
|
|
{
|
|
float a = __builtin_inff (); /* { dg-error "error: target format does not support infinity" } */
|
|
double b = __builtin_inf (); /* { dg-error "error: target format does not support infinity" } */
|
|
long double c = __builtin_infl (); /* { dg-error "error: target format does not support infinity" } */
|
|
}
|