aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-08-19 23:10:52 +0000
committerChris Lattner <sabre@nondot.org>2002-08-19 23:10:52 +0000
commit0f7c8c29d34063e748ac287a1c923ac1af57ea0c (patch)
tree0fac468a07f359132fcc37b353158710d10454bc
parentdf35a1cb4ba19a6aa17f6b29f1cce05a8ca81a37 (diff)
New testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3395 91177308-0d34-0410-b5e6-96231b3b80d8
-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]
+