Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame^] | 1 | ; This testcase shoudl return with an exit code of 1. |
2 | ; | ||||
3 | ; RUN: llvm-upgrade < %s | llvm-as | not lli | ||||
4 | |||||
5 | %test = global long 0 | ||||
6 | implementation | ||||
7 | |||||
8 | |||||
9 | internal long %test() { | ||||
10 | %tmp.0 = load long* %test ; <long> [#uses=1] | ||||
11 | %tmp.1 = add long %tmp.0, 1 ; <long> [#uses=1] | ||||
12 | ret long %tmp.1 | ||||
13 | } | ||||
14 | |||||
15 | int %main() { | ||||
16 | %L = call long %test() | ||||
17 | %I = cast long %L to int | ||||
18 | ret int %I | ||||
19 | } | ||||
20 |