Chris Lattner | 7c87e40 | 2003-05-06 19:41:25 +0000 | [diff] [blame] | 1 | ; This testcase shoudl return with an exit code of 1. |
| 2 | ; |
Chris Lattner | 607c317 | 2003-11-19 19:44:28 +0000 | [diff] [blame] | 3 | ; RUN: llvm-as < %s | not lli |
Chris Lattner | 7c87e40 | 2003-05-06 19:41:25 +0000 | [diff] [blame] | 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 | |