OSDN Git Service

Make the test test what it is supposed to
authorChris Lattner <sabre@nondot.org>
Thu, 27 May 2004 07:37:45 +0000 (07:37 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 27 May 2004 07:37:45 +0000 (07:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13826 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/CorrelatedExprs/nullpointer.ll

index 8f3402b..fdb561e 100644 (file)
@@ -5,6 +5,9 @@
 
 implementation   ; Functions:
 
+declare void %foo()
+declare void %bar()
+
 int %nullptr(int* %j) {
 bb0:
        store int 7, int* %j               ; j != null
@@ -12,7 +15,9 @@ bb0:
        br bool %cond220, label %bb3, label %bb4  ; direct branch
 
 bb3:
+       call void %foo()
        ret int 4                          ; Dead code
 bb4:
+       call void %bar()
        ret int 3                          ; Live code
 }