1 ; RUN: opt < %s -passes=globaldce -S
3 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
5 declare { ptr, i1 } @llvm.type.checked.load(ptr, i32, metadata)
7 define internal void @foo() {
8 call void @bar_with_fptr_argument(i64 ptrtoint (ptr @baz to i64))
12 define internal void @bar_with_fptr_argument(i64 %0) {
16 define internal void @baz() {
20 !999 = !{i32 1, !"Virtual Function Elim", i32 1}
21 !llvm.module.flags = !{!999}