Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | opt -scalarrepl -mem2reg | llvm-dis | not grep alloca |
2 | |||||
3 | int %test() { | ||||
4 | %X = alloca { int, float } | ||||
5 | %Y = getelementptr {int,float}* %X, long 0, uint 0 | ||||
6 | store int 0, int* %Y | ||||
7 | |||||
8 | %Z = load int* %Y | ||||
9 | ret int %Z | ||||
10 | } |