21 lines · plain
1; This testcase should return with an exit code of 1.2;3; RUN: not %lli -jit-kind=mcjit %s4; RUN: not %lli %s5 6@test = global i64 0 ; <ptr> [#uses=1]7 8define internal i64 @test.upgrd.1() {9 %tmp.0 = load i64, ptr @test ; <i64> [#uses=1]10 %tmp.1 = add i64 %tmp.0, 1 ; <i64> [#uses=1]11 ret i64 %tmp.112}13 14define i32 @main() {15 %L = call i64 @test.upgrd.1( ) ; <i64> [#uses=1]16 %I = trunc i64 %L to i32 ; <i32> [#uses=1]17 ret i32 %I18}19 20 21