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:    <PERMODULE {{.*}} op4=0 op5=[[ALIASID:[0-9]+]]/>
8; CHECK-NEXT:    <PERMODULE {{.*}} op0=[[ALIASEEID:[0-9]+]]
9; CHECK-NEXT:    <ALIAS {{.*}} op0=[[ALIASID]] {{.*}} op2=[[ALIASEEID]]/>
10; CHECK-NEXT:  </GLOBALVAL_SUMMARY_BLOCK>
11
12; ModuleID = 'thinlto-alias2.ll'
13target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
14target triple = "x86_64-unknown-linux-gnu"
15
16define i32 @main() {
17entry:
18    call void (...) @analias()
19    ret i32 0
20}
21
22@analias = alias void (...), bitcast (void ()* @aliasee to void (...)*)
23
24define void @aliasee() #0 {
25entry:
26    ret void
27}
28
29