diff options
Diffstat (limited to 'test/ExecutionEngine/2003-08-15-AllocaAssertion.ll')
-rw-r--r-- | test/ExecutionEngine/2003-08-15-AllocaAssertion.ll | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ExecutionEngine/2003-08-15-AllocaAssertion.ll b/test/ExecutionEngine/2003-08-15-AllocaAssertion.ll new file mode 100644 index 0000000..adc8220 --- /dev/null +++ b/test/ExecutionEngine/2003-08-15-AllocaAssertion.ll @@ -0,0 +1,12 @@ +; RUN: llvm-upgrade < %s | llvm-as -f -o %t.bc +; RUN: lli %t.bc > /dev/null + +; 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 +} |