diff options
Diffstat (limited to 'test/CodeGen/pr9614.c')
-rw-r--r-- | test/CodeGen/pr9614.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/CodeGen/pr9614.c b/test/CodeGen/pr9614.c new file mode 100644 index 0000000..8c76776 --- /dev/null +++ b/test/CodeGen/pr9614.c @@ -0,0 +1,22 @@ +// RUN: %clang_cc1 -emit-llvm %s -O1 -o - | FileCheck %s + +extern void foo_alias (void) __asm ("foo"); +inline void foo (void) { + return foo_alias (); +} +extern void bar_alias (void) __asm ("bar"); +inline __attribute__ ((__always_inline__)) void bar (void) { + return bar_alias (); +} +void f(void) { + foo(); + bar(); +} + +// CHECK: define void @f() +// CHECK: call void @foo() +// CHECK-NEXT: call void @bar() +// CHECK-NEXT: ret void + +// CHECK: declare void @foo() +// CHECK: declare void @bar() |