diff options
Diffstat (limited to 'clang/test/CodeGen/flatten.c')
| -rw-r--r-- | clang/test/CodeGen/flatten.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/clang/test/CodeGen/flatten.c b/clang/test/CodeGen/flatten.c new file mode 100644 index 00000000000..d766d543e01 --- /dev/null +++ b/clang/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(); +} |

