1; Test to check the callgraph for call to alias in module. 2; RUN: opt -module-summary %s -o %t.o 3; RUN: llvm-bcanalyzer -dump %t.o | FileCheck %s 4 5; CHECK: <GLOBALVAL_SUMMARY_BLOCK 6; CHECK-NEXT: <VERSION 7; CHECK-NEXT: <FLAGS 8; CHECK-NEXT: <PERMODULE {{.*}} op4=0 op5=0 op6=0 op7=[[ALIASID:[0-9]+]]/> 9; CHECK-NEXT: <PERMODULE {{.*}} op0=[[ALIASEEID:[0-9]+]] 10; CHECK-NEXT: <ALIAS {{.*}} op0=[[ALIASID]] {{.*}} op2=[[ALIASEEID]]/> 11; CHECK-NEXT: <BLOCK_COUNT op0=2/> 12; CHECK-NEXT: </GLOBALVAL_SUMMARY_BLOCK> 13 14; ModuleID = 'thinlto-alias2.ll' 15target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 16target triple = "x86_64-unknown-linux-gnu" 17 18define i32 @main() { 19entry: 20 call void (...) @analias() 21 ret i32 0 22} 23 24@analias = alias void (...), bitcast (void ()* @aliasee to void (...)*) 25 26define void @aliasee() #0 { 27entry: 28 ret void 29} 30 31