• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llvm-link %s %p/unnamed-addr1-b.ll -S -o - | sort | FileCheck %s
2
3; Only in this file
4@a = common global i32 0
5; CHECK: @a = common global i32 0
6@b = common unnamed_addr global i32 0
7; CHECK: @b = common unnamed_addr global i32 0
8
9; Other file has unnamed_addr definition
10@c = common unnamed_addr global i32 0
11; CHECK: @c = common unnamed_addr global i32 0
12@d = external global i32
13; CHECK: @d = unnamed_addr global i32 42
14@e = external unnamed_addr global i32
15; CHECK: @e = unnamed_addr global i32 42
16@f = weak global i32 42
17; CHECK: @f = unnamed_addr global i32 42
18
19; Other file has non-unnamed_addr definition
20@g = common unnamed_addr global i32 0
21; CHECK: @g = common unnamed_addr global i32 0
22@h = external global i32
23; CHECK: @h = global i32 42
24@i = external unnamed_addr global i32
25; CHECK: @i = global i32 42
26@j = weak global i32 42
27; CHECK: @j = global i32 42
28