Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/pr43305.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
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 } |