; Test to check the callgraph for calls to casts. ; RUN: opt -module-summary %s -o %t.o ; RUN: llvm-bcanalyzer -dump %t.o | FileCheck %s ; PR34966 ; CHECK: ; CHECK-NEXT: ; CHECK-NEXT: ; ModuleID = 'thinlto-function-summary-callgraph-cast.ll' target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" define void @caller() { call void @callee() call void @analias() ret void } define void @another_caller() { ; Test calls that aren't handled either as direct or indirect. call void getelementptr (i8, ptr @f, i64 ptrtoint (ptr @g to i64))() ret void } declare void @callee(...) @analias = alias void (...), ptr @aliasee define void @aliasee() { entry: ret void } declare void @f() declare void @g() @global = extern_weak global i32