diff options
author | Chris Lattner <sabre@nondot.org> | 2009-10-27 05:35:35 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-10-27 05:35:35 +0000 |
commit | 744f19aa15a4fe89631d3ee39955973f85196977 (patch) | |
tree | a508f37cf3174bbdd6ad9898f62afe9ac0f9df12 | |
parent | 8bb080e71b4abcb0289c65143ffe837ffd8f4f45 (diff) |
convert to filecheck.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85205 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/Transforms/Inline/basictest.ll | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/test/Transforms/Inline/basictest.ll b/test/Transforms/Inline/basictest.ll index 71e00cb4c0..451b8cbdfd 100644 --- a/test/Transforms/Inline/basictest.ll +++ b/test/Transforms/Inline/basictest.ll @@ -1,12 +1,15 @@ -; RUN: opt < %s -inline -disable-output -print-function 2> /dev/null +; RUN: opt < %s -inline -S | FileCheck %s -define i32 @func(i32 %i) { +define i32 @test1f(i32 %i) { ret i32 %i } -define i32 @main(i32 %argc) { - %X = call i32 @func( i32 7 ) ; <i32> [#uses=1] - %Y = add i32 %X, %argc ; <i32> [#uses=1] +define i32 @test1(i32 %W) { + %X = call i32 @test1f(i32 7) + %Y = add i32 %X, %W ret i32 %Y +; CHECK: @test1( +; CHECK-NEXT: %Y = add i32 7, %W +; CHECK-NEXT: ret i32 %Y } |