blob: ea3f14b5128459ad3fe626a2ac59bac0d57b21db [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; 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
6implementation
7
8
9internal 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
15int %main() {
16 %L = call long %test()
17 %I = cast long %L to int
18 ret int %I
19}
20