1 ; RUN: llvm-as < %s >%t1
2 ; RUN: llvm-lto -o %t2 -dso-symbol=foo1 -dso-symbol=foo2 -dso-symbol=foo3 \
3 ; RUN: -dso-symbol=v1 -dso-symbol=v2 -dso-symbol=v3 \
4 ; RUN: -dso-symbol=v4 -dso-symbol=v5 -dso-symbol=v6 %t1 -O0
5 ; RUN: llvm-nm %t2 | FileCheck %s
7 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
8 target triple = "x86_64-unknown-linux-gnu"
11 define linkonce_odr void @foo1() noinline {
16 define linkonce_odr void @foo2() local_unnamed_addr noinline {
21 define linkonce_odr void @foo3() unnamed_addr noinline {
26 @v1 = linkonce_odr constant i32 32
29 @v2 = linkonce_odr local_unnamed_addr constant i32 32
32 @v3 = linkonce_odr unnamed_addr constant i32 32
35 @v4 = linkonce_odr global i32 32
38 @v5 = linkonce_odr local_unnamed_addr global i32 32
41 @v6 = linkonce_odr unnamed_addr global i32 32
47 %x1 = load i32, i32* @v1
48 %x2 = load i32, i32* @v2
49 %x3 = load i32, i32* @v3
50 %x4 = load i32, i32* @v4
51 %x5 = load i32, i32* @v5
52 %x6 = load i32, i32* @v6