1 /* Copyright (C) 2007 Free Software Foundation.
2 
3    Check that isinf, isinff and isinfl built-in functions compile.
4 
5    Written by Uros Bizjak, 31st January 2007.  */
6 
7 /* { dg-do compile } */
8 /* { dg-options "-O2" } */
9 
10 extern int isinf(double);
11 extern int isinff(float);
12 extern int isinfl(long double);
13 
test1(double x)14 int test1(double x)
15 {
16   return isinf(x);
17 }
18 
test1f(float x)19 int test1f(float x)
20 {
21   return isinff(x);
22 }
23 
test1l(long double x)24 int test1l(long double x)
25 {
26   return isinfl(x);
27 }
28 
29