1 ; RUN: opt -module-summary %s -o %t1.bc
2 ; RUN: opt -module-summary %p/Inputs/dot-dumper.ll -o %t2.bc
3 ; RUN: llvm-lto2 run -save-temps %t1.bc %t2.bc -o %t3 \
4 ; RUN: -r=%t1.bc,main,px \
6 ; RUN: -r=%t2.bc,foo,p \
7 ; RUN: -r=%t2.bc,bar,p \
10 ; RUN: cat %t3.index.dot | FileCheck %s
12 ; CHECK: subgraph cluster_4294967295
13 ; CHECK: M4294967295_[[ID:[0-9]+]]{{.*}}main
14 ; CHECK: // Cross-module edges:
15 ; CHECK: M4294967295_[[ID]] -> M0_{{[0-9]+}}{{.*}}// ref
17 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
18 target triple = "x86_64-unknown-linux-gnu"
20 @A = external global i32
23 %v = load i32, i32* @A
27 !0 = !{i32 1, !"ThinLTO", i32 0}
28 !llvm.module.flags = !{ !0 }