blob: 5970628eaedf6ab8b9ebe020e9c774370e45269e [file] [log] [blame]
Daniel Dunbar46a27162010-11-13 00:28:01 +00001; RUN: lli %s > /dev/null
Tanya Lattnere9789ef2004-11-06 23:32:43 +00002
Chris Lattnerf2d49162003-08-15 22:36:55 +00003; This testcase failed to work because two variable sized allocas confused the
4; local register allocator.
5
Tanya Lattnerceca1942008-03-10 07:21:50 +00006define i32 @main(i32 %X) {
7 %A = alloca i32, i32 %X ; <i32*> [#uses=0]
8 %B = alloca float, i32 %X ; <float*> [#uses=0]
9 ret i32 0
Chris Lattnerf2d49162003-08-15 22:36:55 +000010}
Tanya Lattnerceca1942008-03-10 07:21:50 +000011