aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/CBackend/2002-08-19-HardConstantExpr.ll4
-rw-r--r--test/CodeGen/CBackend/2002-08-19-HardConstantExpr.ll4
2 files changed, 8 insertions, 0 deletions
diff --git a/test/CBackend/2002-08-19-HardConstantExpr.ll b/test/CBackend/2002-08-19-HardConstantExpr.ll
new file mode 100644
index 0000000000..cd2d1117ed
--- /dev/null
+++ b/test/CBackend/2002-08-19-HardConstantExpr.ll
@@ -0,0 +1,4 @@
+%array = constant [2 x int] [ int 12, int 52 ] ; <[2 x int]*> [#uses=1]
+%arrayPtr = global int* getelementptr ([2 x int]* %array, uint 0, uint 0) ; <int**> [#uses=1]
+%arrayPtr5 = global int* getelementptr (int** %arrayPtr, uint 0, uint 5) ; <int**> [#uses=0]
+
diff --git a/test/CodeGen/CBackend/2002-08-19-HardConstantExpr.ll b/test/CodeGen/CBackend/2002-08-19-HardConstantExpr.ll
new file mode 100644
index 0000000000..cd2d1117ed
--- /dev/null
+++ b/test/CodeGen/CBackend/2002-08-19-HardConstantExpr.ll
@@ -0,0 +1,4 @@
+%array = constant [2 x int] [ int 12, int 52 ] ; <[2 x int]*> [#uses=1]
+%arrayPtr = global int* getelementptr ([2 x int]* %array, uint 0, uint 0) ; <int**> [#uses=1]
+%arrayPtr5 = global int* getelementptr (int** %arrayPtr, uint 0, uint 5) ; <int**> [#uses=0]
+