1 ; RUN: opt -module-summary %s -o %t1.bc
2 ; RUN: opt -module-summary %p/Inputs/index-const-prop-comdat.ll -o %t2.bc
3 ; RUN: llvm-lto2 run -save-temps %t2.bc -r=%t2.bc,g,pl %t1.bc -r=%t1.bc,main,plx -r=%t1.bc,g, -o %t3
4 ; RUN: llvm-dis %t3.2.3.import.bc -o - | FileCheck %s
6 ; Comdats are not internalized even if they are read only.
7 ; CHECK: @g = available_externally dso_local global i32 42
9 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
10 target triple = "x86_64-unknown-linux-gnu"
12 @g = external global i32
15 %v = load i32, i32* @g