OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [float-range-1.c] - Blame information for rev 247

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* 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" } */
6
 
7
void
8
f (void)
9
{
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'" } */
13
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.