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
5 ; CHECK: <GLOBALVAL_SUMMARY_BLOCK
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: </GLOBALVAL_SUMMARY_BLOCK>
13 ; ModuleID = 'thinlto-alias2.ll'
14 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
15 target triple = "x86_64-unknown-linux-gnu"
19 call void (...) @analias()
23 @analias = alias void (...), bitcast (void ()* @aliasee to void (...)*)
25 define void @aliasee() #0 {