blob: e670d11d4a1551ddf1556af64f2f6d67766fc02c [file] [log] [blame]
Daniel Dunbar46a27162010-11-13 00:28:01 +00001; This testcase should return with an exit code of 1.
Chris Lattner7c87e402003-05-06 19:41:25 +00002;
Daniel Dunbar46a27162010-11-13 00:28:01 +00003; RUN: not lli %s
Chris Lattner7c87e402003-05-06 19:41:25 +00004
Tanya Lattnerceca1942008-03-10 07:21:50 +00005@test = global i64 0 ; <i64*> [#uses=1]
Chris Lattner7c87e402003-05-06 19:41:25 +00006
Tanya Lattnerceca1942008-03-10 07:21:50 +00007define internal i64 @test.upgrd.1() {
8 %tmp.0 = load i64* @test ; <i64> [#uses=1]
9 %tmp.1 = add i64 %tmp.0, 1 ; <i64> [#uses=1]
10 ret i64 %tmp.1
Chris Lattner7c87e402003-05-06 19:41:25 +000011}
12
Tanya Lattnerceca1942008-03-10 07:21:50 +000013define i32 @main() {
14 %L = call i64 @test.upgrd.1( ) ; <i64> [#uses=1]
15 %I = trunc i64 %L to i32 ; <i32> [#uses=1]
16 ret i32 %I
Chris Lattner7c87e402003-05-06 19:41:25 +000017}
18
Tanya Lattnerceca1942008-03-10 07:21:50 +000019