aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-08-02 15:29:12 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-08-02 15:29:12 -0700
commit2cb37d3818ce1acbc074e0a545b588ba41aee332 (patch)
tree0d4c88f8e53fe2b0a538291ebbc5f7e3cada9f45 /tests
parent94457cf057c8b563fa021ba576624c001506a026 (diff)
improve testcase
Diffstat (limited to 'tests')
-rw-r--r--tests/cases/structphiparam.ll5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/cases/structphiparam.ll b/tests/cases/structphiparam.ll
index ddede264..117bdf77 100644
--- a/tests/cases/structphiparam.ll
+++ b/tests/cases/structphiparam.ll
@@ -12,13 +12,14 @@ define i32 @doit(i32 %x, { i32, i32 } %y) {
ret i32 0
}
-define i32 @main() {
+define i32 @main(i32 %argc) {
entry:
%retval = alloca i32, align 4 ; [#uses=1 type=i32*]
%myi64 = alloca i64, align 4
%comp = alloca { i32, i32 }, align 4 ; [#uses=1]
store i32 0, i32* %retval
- br label %cond.end
+ %should = icmp ne i32 %argc, 1337
+ br i1 %should, label %cond.end, label %cond.null
cond.null:
br label %cond.end