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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [cpp0x/] [constexpr-builtin1.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/49813
2
// { dg-options -std=c++0x }
3
 
4
inline constexpr bool
5
isinf(long double __x)
6
{ return __builtin_isinf(__x); }
7
 
8
inline constexpr bool
9
isinf(double __x)
10
{ return __builtin_isinf(__x); }
11
 
12
inline constexpr bool
13
isnan(long double __x)
14
{ return __builtin_isnan(__x); }
15
 
16
int main()
17
{
18
  constexpr long double num1 = __builtin_isinf(1.l); // Ok.
19
 
20
  constexpr long double num2 = isinf(1.l);           // Error.
21
 
22
  constexpr double      num3 = isinf(1.);            // Ok.
23
 
24
  constexpr long double num4 = isnan(1.l);           // Ok.
25
}

powered by: WebSVN 2.1.0

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