1 ; RUN: opt -S -lowertypetests < %s | FileCheck %s
3 target datalayout = "e-p:32:32"
5 ; CHECK: @{{[0-9]+}} = alias
6 ; CHECK: @{{[0-9]+}} = alias
7 @0 = constant i32 1, !type !0
8 @1 = constant [2 x i32] [i32 2, i32 3], !type !1
10 !0 = !{i32 0, !"typeid1"}
11 !1 = !{i32 4, !"typeid1"}
13 declare i1 @llvm.type.test(i8* %ptr, metadata %bitset) nounwind readnone
15 define i1 @foo(i8* %p) {
16 %x = call i1 @llvm.type.test(i8* %p, metadata !"typeid1")