diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-14 06:44:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-14 06:44:48 +0000 |
commit | dbb5a376c8b9272813a30c5519031e9ea2fb071f (patch) | |
tree | 91bc12076b85ed1569d71d20ac4d49941dcb28bd /test/CodeGen/function-attributes.c | |
parent | d5ee6677c5f22409039a019accf41ec3937afe99 (diff) |
defer emission of always_inline, extern_inline, and inline functions (when
not in c89 mode).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/function-attributes.c')
-rw-r--r-- | test/CodeGen/function-attributes.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/CodeGen/function-attributes.c b/test/CodeGen/function-attributes.c index a12111ec94..3269f98a56 100644 --- a/test/CodeGen/function-attributes.c +++ b/test/CodeGen/function-attributes.c @@ -7,7 +7,6 @@ // RUN: grep 'define zeroext i16 @f5(i32 %x) nounwind' %t && // RUN: grep 'define void @f6(i16 signext %x) nounwind' %t && // RUN: grep 'define void @f7(i16 zeroext %x) nounwind' %t && -// RUN: grep 'define void @f8() nounwind alwaysinline' %t && signed char f0(int x) { return x; } @@ -25,6 +24,8 @@ void f6(signed short x) { } void f7(unsigned short x) { } +// F8 is dead so it should not be emitted. +// RUN: not grep '@f8' %t && void __attribute__((always_inline)) f8(void) { } // RUN: grep 'call void @f9_t() noreturn' %t && |