| 1 |
// RUN: %clang_cc1 -triple x86_64-windows -emit-llvm -disable-llvm-passes %s -o - | FileCheck %s |
| 2 |
// Inline builtin are not supported for odr linkage |
| 3 |
// CHECK-NOT: .inline |
| 4 |
|
| 5 |
double __cdecl frexp( double _X, int* _Y); |
| 6 |
inline __attribute__((always_inline)) long double __cdecl frexpl( long double __x, int *__exp ) { |
| 7 |
return (long double) frexp((double)__x, __exp ); |
| 8 |
} |
| 9 |
|
| 10 |
long double pain(void) |
| 11 |
{ |
| 12 |
long double f = 123.45; |
| 13 |
int i; |
| 14 |
long double f2 = frexpl(f, &i); |
| 15 |
return f2; |
| 16 |
} |