2 ; RUN: llvm-as %s -o %t1.o
3 ; RUN: llvm-as %S/Inputs/unnamed-addr-drop.ll -o %t2.o
4 ; RUN: ld.lld %t1.o %t2.o -o %t.so -save-temps -shared
5 ; RUN: llvm-dis %t.so.0.2.internalize.bc -o - | FileCheck %s
7 target triple = "x86_64-unknown-linux-gnu"
8 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
10 @foo = weak constant i32 41
12 ; Check that unnamed_addr is dropped during the merge.
13 ; CHECK: @foo = constant i32 42