aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-04-14 20:51:13 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-04-14 20:51:13 -0700
commit953323e80a9765fc3d7d7bfd3134d1a4a9c48580 (patch)
treeb364f5f02c556dec1f05188f9d646ade9849eb13 /tests
parente2802c2f72bf0c3d5aada7982c393a3dad3b1031 (diff)
fix makeSetValue on complex structural types, fixes #386
Diffstat (limited to 'tests')
-rw-r--r--tests/cases/complexphi.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/cases/complexphi.ll b/tests/cases/complexphi.ll
index 6f64af06..fcb7185f 100644
--- a/tests/cases/complexphi.ll
+++ b/tests/cases/complexphi.ll
@@ -3,6 +3,7 @@ target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f3
target triple = "i386-pc-linux-gnu"
@.str = private unnamed_addr constant [15 x i8] c"hello, world!\0A\00", align 1 ; [#uses=1 type=[15 x i8]*]
+@_dispatchTable = internal global i64 0
; [#uses=0]
define i32 @main() {
@@ -19,6 +20,9 @@ cond.null:
cond.end: ; preds = %cond.false, %cond.true
%cond = phi { i32, i32 } [ { i32 5, i32 6 }, %entry ], [ zeroinitializer, %cond.null ] ; [#uses=1]
store { i32, i32 } %cond, { i32, i32 }* %comp
+
+ store { i32, i32 } { i32 ptrtoint (i64* @_dispatchTable to i32), i32 0 }, { i32, i32 }* getelementptr inbounds ([1 x i64]* @_dispatchTable, i32 0, i32 0, i32 1), align 4
+
ret i32 0 ; [debug line = 6:13]
}