mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-27 23:16:05 +00:00

Revert "Update cxx-irgen.cpp test to allow signext in alwaysinline functions." Revert "[CodeGen] Remove wrapper-free always_inline functions from COMDATs" Revert "Always_inline codegen rewrite." Reason for revert: PR24793. llvm-svn: 247620
16 lines
252 B
C
16 lines
252 B
C
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
|
|
// RUN: %clang_cc1 -fno-inline -emit-llvm %s -o - | FileCheck %s
|
|
|
|
// CHECK-NOT: foo
|
|
|
|
void bar() {
|
|
}
|
|
|
|
inline void __attribute__((__always_inline__)) foo() {
|
|
bar();
|
|
}
|
|
|
|
void i_want_bar() {
|
|
foo();
|
|
}
|