commit | 36f8782cfbb3467daa82060c02fc4abe3535aedd | [log] [tgz] |
---|---|---|
author | Evan Cheng <evan.cheng@apple.com> | Thu Jan 29 09:31:54 2009 +0000 |
committer | Evan Cheng <evan.cheng@apple.com> | Thu Jan 29 09:31:54 2009 +0000 |
tree | ada5655d3c9fd31a54ddf7e367b5242ffcff24a6 | |
parent | 6ed1f08a168e25dadd8c5e37ac97c1aad9dc8721 [diff] [blame] |
Add a always_inline test case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63304 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/FrontendC/always-inline.c b/test/FrontendC/always-inline.c new file mode 100644 index 0000000..22f6c7a --- /dev/null +++ b/test/FrontendC/always-inline.c
@@ -0,0 +1,12 @@ +// RUN: %llvmgcc -S %s -o - | grep call | not grep foo + +void bar() { +} + +inline void __attribute__((__always_inline__)) foo() { + bar(); +} + +void i_want_bar() { + foo(); +}