From b691b704ad90e20b05ca380de12c1dc6aefb1bbb Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Thu, 29 Jan 2009 09:31:54 +0000 Subject: Add a always_inline test case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63304 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/FrontendC/always-inline.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/FrontendC/always-inline.c (limited to 'test/FrontendC') 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(); +} -- cgit v1.1