blob: d29fa0eb5475247cd8a3c1f0e6e56315b88242bc [file] [log] [blame]
; RUN: opt -passes=lint < %s
; lint shouldn't crash on any of the below functions
@g_1 = external global [3 x i32]
@g_2 = external global [2 x i32]
define void @test1() {
tail call void @f1(i16 zext (i1 icmp eq (ptr @g_2, ptr getelementptr inbounds ([3 x i32], ptr @g_1, i64 0, i64 1)) to i16))
ret void
declare void @f1(i16)
define void @test2() {
tail call void inttoptr (i64 sext (i32 ptrtoint (ptr @f2 to i32) to i64) to ptr)()
ret void
declare void @f2()