New testcase identified by misha, distilled from the 'ls' program
authorChris Lattner <sabre@nondot.org>
Fri, 15 Aug 2003 22:36:55 +0000 (22:36 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 15 Aug 2003 22:36:55 +0000 (22:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7909 91177308-0d34-0410-b5e6-96231b3b80d8

test/ExecutionEngine/2003-08-15-AllocaAssertion.ll [new file with mode: 0644]

diff --git a/test/ExecutionEngine/2003-08-15-AllocaAssertion.ll b/test/ExecutionEngine/2003-08-15-AllocaAssertion.ll
new file mode 100644 (file)
index 0000000..35248d1
--- /dev/null
@@ -0,0 +1,9 @@
+; This testcase failed to work because two variable sized allocas confused the
+; local register allocator.
+
+int %main(uint %X) {
+  %A = alloca uint, uint %X
+
+  %B = alloca float, uint %X
+  ret int 0
+}