xref: /llvm-project/clang/test/CodeGen/inline-builtin-comdat.c (revision c5de4dd1eab00df76c1a68c5f397304ceacb71f2)
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);
frexpl(long double __x,int * __exp)6 inline __attribute__((always_inline))  long double __cdecl frexpl( long double __x, int *__exp ) {
7   return (long double) frexp((double)__x, __exp );
8 }
9 
pain(void)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 }
17