blob: 7d9ba084ff73839bd46317a4798968f631eb2211 [file] [log] [blame]
; RUN: opt -S -passes=lowertypetests %s | FileCheck %s
target datalayout = "e-p:32:32"
; CHECK: @{{[0-9]+}} = alias
; CHECK: @{{[0-9]+}} = alias
@0 = constant i32 1, !type !0
@1 = constant [2 x i32] [i32 2, i32 3], !type !1
!0 = !{i32 0, !"typeid1"}
!1 = !{i32 4, !"typeid1"}
declare i1 @llvm.type.test(ptr %ptr, metadata %bitset) nounwind readnone
define i1 @foo(ptr %p) {
%x = call i1 @llvm.type.test(ptr %p, metadata !"typeid1")
ret i1 %x
}