1 ; RUN: llvm-as -o %t %s
2 ; RUN: llvm-lto2 dump-symtab %t | FileCheck %s
4 ; CHECK: target triple: i686-pc-windows-msvc18.0.0
5 target triple = "i686-pc-windows-msvc18.0.0"
6 target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
8 ; CHECK: source filename: src.c
9 source_filename = "src.c"
11 ; CHECK: linker opts: /include:foo
12 !0 = !{!"/include:foo"}
13 !llvm.linker.options = !{ !0 }
15 ; CHECK: D------X _fun
20 ; CHECK: D------X @fun2@8
21 ; CHECK-NEXT: comdat @fun2@8
23 define x86_fastcallcc i32 @fun2(i32 inreg %a, i32 inreg %b) comdat {
25 %add = add nsw i32 %b, %a
30 @g1 = hidden global i32 0
33 @g2 = protected global i32 0
39 @g4 = external global i32
42 @g5 = weak global i32 0
45 @g6 = linkonce_odr unnamed_addr global i32 0
48 @g7 = thread_local global i32 0
51 ; CHECK-NEXT: size 4 align 8
52 @g8 = common global i32 0, align 8
55 ; CHECK-NEXT: comdat _g9
57 @g9 = global i32 0, comdat
61 @g10 = internal global i32 0, comdat
63 ; CHECK: D------- _g11
65 @g11 = global i32 0, comdat($g10)
68 ; CHECK-NEXT: comdat _g9
69 ; CHECK-NEXT: fallback _g9
70 @a1 = weak alias i32, i32* @g9