PR tree-optimization/83369 - Missing diagnostics during inlining
[official-gcc.git] / gcc / testsuite / gcc.dg / builtins-38.c
blob210516bb7dc031566e2c7de51ab7bdff5bd0eabe
1 /* Copyright (C) 2004 Free Software Foundation.
3 Check that logb, logbf, logbl, ilogb, ilogbf and ilogbl
4 built-in functions compile.
6 Written by Uros Bizjak, 14th April 2004. */
8 /* { dg-do compile } */
9 /* { dg-options "-O2 -ffast-math" } */
11 extern double logb(double);
12 extern float logbf(float);
13 extern long double logbl(long double);
14 extern int ilogb(double);
15 extern int ilogbf(float);
16 extern int ilogbl(long double);
19 double test1(double x)
21 return logb(x);
24 float test1f(float x)
26 return logbf(x);
29 long double test1l(long double x)
31 return logbl(x);
34 int test2(double x)
36 return ilogb(x);
39 int test2f(float x)
41 return ilogbf(x);
44 int test2l(long double x)
46 return ilogbl(x);