brintos

brintos / llvm-project-archived public Read only

0
0
Text · 370 B · b7719af Raw
24 lines · plain
1; RUN: opt -passes=lint < %s2 3; lint shouldn't crash on any of the below functions4 5@g_1 = external global [3 x i32]6@g_2 = external global [2 x i32]7 8define void @test1() {9entry:10  tail call void @f1(i1 ptrtoint (ptr @g_2 to i1))11  ret void12}13 14declare void @f1(i1)15 16define void @test2() {17  tail call void inttoptr (i64 -1 to ptr)()18 19  ret void20}21 22declare void @f2()23 24