blob: 3164dd85c19828ff650f0f977b3f4bee5304fa4c [file] [log] [blame]
Chris Lattner7c87e402003-05-06 19:41:25 +00001; This testcase shoudl return with an exit code of 1.
2;
Chris Lattner607c3172003-11-19 19:44:28 +00003; RUN: llvm-as < %s | not lli
Chris Lattner7c87e402003-05-06 19:41:25 +00004
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