summaryrefslogtreecommitdiffstats
path: root/test/FrontendC
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-01-29 09:31:54 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-01-29 09:31:54 +0000
commitb691b704ad90e20b05ca380de12c1dc6aefb1bbb (patch)
treeada5655d3c9fd31a54ddf7e367b5242ffcff24a6 /test/FrontendC
parent56ab1a281511dde8c173cd2dc8ef55a916049037 (diff)
downloadexternal_llvm-b691b704ad90e20b05ca380de12c1dc6aefb1bbb.zip
external_llvm-b691b704ad90e20b05ca380de12c1dc6aefb1bbb.tar.gz
external_llvm-b691b704ad90e20b05ca380de12c1dc6aefb1bbb.tar.bz2
Add a always_inline test case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63304 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/FrontendC')
-rw-r--r--test/FrontendC/always-inline.c12
1 files changed, 12 insertions, 0 deletions
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();
+}