Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; RUN: llvm-upgrade < %s | llvm-as | llvm-dis > %t1.ll |
2 | ; RUN: llvm-as %t1.ll -o - | llvm-dis > %t2.ll | ||||
3 | ; RUN: diff %t1.ll %t2.ll | ||||
4 | |||||
5 | |||||
6 | %X = global int undef | ||||
7 | |||||
8 | implementation | ||||
9 | |||||
10 | declare int "atoi"(sbyte *) | ||||
11 | |||||
12 | int %test() { | ||||
13 | ret int undef | ||||
14 | } | ||||
15 | |||||
16 | int %test2() { | ||||
17 | %X = add int undef, 1 | ||||
18 | ret int %X | ||||
19 | } |