OSDN Git Service

2010-03-29 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / gcc.dg / pr43305.c
1 /* { dg-do compile } */
2 /* { dg-options "-Os -ffast-math" } */
3 extern int ilogbl(long double);
4 extern int printf(const char *format, ...);
5
6 __attribute__((noinline, noclone))
7 int foo(long double x)
8 {
9   return ilogbl(x);
10 }
11
12 int main()
13 {
14   printf("%d\n", foo(100));
15   return 0;
16 }