[llvm-commits] [llvm] r63304 - /llvm/trunk/test/FrontendC/always-inline.c
Evan Cheng
evan.cheng at apple.com
Thu Jan 29 01:31:55 PST 2009
Author: evancheng
Date: Thu Jan 29 03:31:54 2009
New Revision: 63304
URL: http://llvm.org/viewvc/llvm-project?rev=63304&view=rev
Log:
Add a always_inline test case.
Added:
llvm/trunk/test/FrontendC/always-inline.c
Added: llvm/trunk/test/FrontendC/always-inline.c
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/FrontendC/always-inline.c?rev=63304&view=auto
==============================================================================
--- llvm/trunk/test/FrontendC/always-inline.c (added)
+++ llvm/trunk/test/FrontendC/always-inline.c Thu Jan 29 03:31:54 2009
@@ -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();
+}
More information about the llvm-commits
mailing list