Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; Uninitialized values are not handled correctly. |
2 | ; | ||||
3 | ; RUN: llvm-upgrade < %s | llvm-as | opt -mem2reg | ||||
4 | ; | ||||
5 | |||||
6 | implementation | ||||
7 | |||||
8 | int "test"() | ||||
9 | begin | ||||
10 | %X = alloca int ; To be promoted | ||||
11 | %Y = load int* %X | ||||
12 | ret int %Y | ||||
13 | end |