diff options
Diffstat (limited to 'test/CodeGen/flatten.c')
-rw-r--r-- | test/CodeGen/flatten.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/CodeGen/flatten.c b/test/CodeGen/flatten.c new file mode 100644 index 000000000000..d766d543e01d --- /dev/null +++ b/test/CodeGen/flatten.c @@ -0,0 +1,19 @@ +// RUN: %clang_cc1 -triple=x86_64-linux-gnu %s -emit-llvm -o - | FileCheck %s + +void f(void) {} + +__attribute__((noinline)) void ni(void) {} + +__attribute__((flatten)) +// CHECK: define void @g() +void g(void) { + // CHECK-NOT: call {{.*}} @f + f(); + // CHECK: call {{.*}} @ni + ni(); +} + +void h(void) { + // CHECK: call {{.*}} @f + f(); +} |