aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/inline-builtin-comdat.c
blob: 059dd2d165c3ec31087962b3f0893e9c2046a166 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %clang_cc1 -triple x86_64-windows -emit-llvm -disable-llvm-passes %s -o - | FileCheck %s
// Inline builtin are not supported for odr linkage
// CHECK-NOT: .inline

double __cdecl frexp( double _X, int* _Y);
inline __attribute__((always_inline))  long double __cdecl frexpl( long double __x, int *__exp ) {
  return (long double) frexp((double)__x, __exp );
}

long double pain(void)
{
    long double f = 123.45;
    int i;
    long double f2 = frexpl(f, &i);
    return f2;
}