diff --git a/test/ExecutionEngine/test-loadstore.ll b/test/ExecutionEngine/test-loadstore.ll index f301e66be5a..1685c78142f 100644 --- a/test/ExecutionEngine/test-loadstore.ll +++ b/test/ExecutionEngine/test-loadstore.ll @@ -11,10 +11,19 @@ void %test(sbyte* %P, short* %P, int* %P) { ret void } +uint %varalloca(uint %Size) { + %X = alloca uint, uint %Size ;; Variable sized alloca + store uint %Size, uint* %X + %Y = load uint* %X + ret uint %Y +} + int %main() { %A = alloca sbyte %B = alloca short %C = alloca int call void %test(sbyte* %A, short* %B, int* %C) + call uint %varalloca(uint 7) + ret int 0 }