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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [float-range-2.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* Floating constants outside the range of their type should receive a
2
   pedwarn, not a warning.  This includes INFINITY if the target does
3
   not support infinities.  */
4
/* Origin: Joseph Myers <jsm@polyomino.org.uk> */
5
/* { dg-do compile { target vax-*-* pdp11-*-* } } */
6
/* { dg-options "-ansi -pedantic-errors" } */
7
 
8
void
9
f (void)
10
{
11
  float a = __builtin_inff (); /* { dg-error "target format does not support infinity" } */
12
  double b = __builtin_inf (); /* { dg-error "target format does not support infinity" } */
13
  long double c = __builtin_infl (); /* { dg-error "target format does not support infinity" } */
14
}

powered by: WebSVN 2.1.0

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