diff options
Diffstat (limited to 'test/CodeGenCXX/flatten.cpp')
-rw-r--r-- | test/CodeGenCXX/flatten.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGenCXX/flatten.cpp b/test/CodeGenCXX/flatten.cpp new file mode 100644 index 0000000..9e0f67f --- /dev/null +++ b/test/CodeGenCXX/flatten.cpp @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -triple=x86_64-linux-gnu -std=c++11 %s -emit-llvm -o - | FileCheck %s + +void f(void) {} + +[[gnu::flatten]] +// CHECK: define void @_Z1gv() +void g(void) { + // CHECK-NOT: call {{.*}} @_Z1fv + f(); +} |