llvm-project/clang/test/CodeGen/inline-builtin-comdat.c
Fangrui Song c5de4dd1ea [test] %clang_cc1 -emit-llvm: remove redundant -S
And replace -emit-llvm -o - with -emit-llvm-only
2024-05-04 17:00:29 -07:00

17 lines
485 B
C

// 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;
}