rt_gccstream/gcc/testsuite/gcc.dg/pr43305.c

17 lines
278 B
C

/* { dg-do compile } */
/* { dg-options "-Os -ffast-math" } */
extern int ilogbl(long double);
extern int printf(const char *format, ...);
__attribute__((noinline, noclone))
int foo(long double x)
{
return ilogbl(x);
}
int main()
{
printf("%d\n", foo(100));
return 0;
}