1 ; RUN: opt -S %s -lowertypetests | FileCheck %s
3 ; CHECK: @badfileops = internal global %struct.f { void ()* @bad_f, void ()* @bad_f }
4 ; CHECK: @bad_f = internal alias void (), void ()* @.cfi.jumptable
5 ; CHECK: define internal void @bad_f.cfi() !type !0 {
8 target triple = "x86_64-unknown-linux"
10 %struct.f = type { void ()*, void ()* }
11 @badfileops = internal global %struct.f { void ()* @bad_f, void ()* @bad_f }, align 8
13 declare i1 @llvm.type.test(i8*, metadata)
15 define internal void @bad_f() !type !1 {
19 define internal fastcc void @do_f() unnamed_addr !type !2 {
20 %1 = tail call i1 @llvm.type.test(i8* undef, metadata !"_ZTSFiP4fileP3uioP5ucrediP6threadE"), !nosanitize !3
24 !1 = !{i64 0, !"_ZTSFiP4fileP3uioP5ucrediP6threadE"}
25 !2 = !{i64 0, !"_ZTSFiP6threadiP4fileP3uioliE"}