New testcase
authorChris Lattner <sabre@nondot.org>
Tue, 27 May 2003 16:45:09 +0000 (16:45 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 27 May 2003 16:45:09 +0000 (16:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6353 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll [new file with mode: 0644]

diff --git a/test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll b/test/Transforms/InstCombine/2003-05-27-ConstExprCrash.ll
new file mode 100644 (file)
index 0000000..353a036
--- /dev/null
@@ -0,0 +1,8 @@
+; RUN: as < %s | opt -instcombine -disable-output
+
+%X = global int 5
+long %test() {
+        %C = add long 1, 2
+       %V = add long cast(int* %X to long), %C
+       ret long %V
+}