2017-04-13 02:27:00 +08:00
|
|
|
; RUN: llvm-as -o %t %s
|
|
|
|
; RUN: llvm-lto2 dump-symtab %t | FileCheck %s
|
|
|
|
|
2017-04-14 10:55:06 +08:00
|
|
|
; CHECK: target triple: i686-pc-windows-msvc18.0.0
|
2017-04-13 02:27:00 +08:00
|
|
|
target triple = "i686-pc-windows-msvc18.0.0"
|
|
|
|
target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
|
|
|
|
|
|
|
|
; CHECK: source filename: src.c
|
|
|
|
source_filename = "src.c"
|
|
|
|
|
2017-04-14 10:55:06 +08:00
|
|
|
; CHECK: linker opts: /include:foo
|
2017-04-13 02:27:00 +08:00
|
|
|
!0 = !{i32 6, !"Linker Options", !{!{!"/include:foo"}}}
|
|
|
|
!llvm.module.flags = !{ !0 }
|
|
|
|
|
2017-04-14 00:24:14 +08:00
|
|
|
; CHECK: D------X _fun
|
|
|
|
define i32 @fun() {
|
|
|
|
ret i32 0
|
|
|
|
}
|
|
|
|
|
|
|
|
; CHECK: H------- _g1
|
2017-04-13 02:27:00 +08:00
|
|
|
@g1 = hidden global i32 0
|
|
|
|
|
2017-04-14 00:24:14 +08:00
|
|
|
; CHECK: P------- _g2
|
2017-04-13 02:27:00 +08:00
|
|
|
@g2 = protected global i32 0
|
|
|
|
|
2017-04-14 00:24:14 +08:00
|
|
|
; CHECK: D------- _g3
|
2017-04-13 02:27:00 +08:00
|
|
|
@g3 = global i32 0
|
|
|
|
|
2017-04-14 00:24:14 +08:00
|
|
|
; CHECK: DU------ _g4
|
2017-04-13 02:27:00 +08:00
|
|
|
@g4 = external global i32
|
|
|
|
|
2017-04-14 00:24:14 +08:00
|
|
|
; CHECK: D--W---- _g5
|
2017-04-13 02:27:00 +08:00
|
|
|
@g5 = weak global i32 0
|
|
|
|
|
2017-04-14 00:24:14 +08:00
|
|
|
; CHECK: D--W-O-- _g6
|
2017-04-13 02:27:00 +08:00
|
|
|
@g6 = linkonce_odr unnamed_addr global i32 0
|
|
|
|
|
2017-04-14 00:24:14 +08:00
|
|
|
; CHECK: D-----T- _g7
|
2017-04-13 02:27:00 +08:00
|
|
|
@g7 = thread_local global i32 0
|
|
|
|
|
2017-04-14 00:24:14 +08:00
|
|
|
; CHECK: D-C----- _g8
|
2017-04-13 02:27:00 +08:00
|
|
|
; CHECK-NEXT: size 4 align 8
|
|
|
|
@g8 = common global i32 0, align 8
|
|
|
|
|
2017-04-14 00:24:14 +08:00
|
|
|
; CHECK: D------- _g9
|
2017-04-13 02:27:00 +08:00
|
|
|
; CHECK-NEXT: comdat g9
|
|
|
|
$g9 = comdat any
|
|
|
|
@g9 = global i32 0, comdat
|
|
|
|
|
2017-04-14 00:24:14 +08:00
|
|
|
; CHECK: D--WI--- _g10
|
2017-04-13 02:27:00 +08:00
|
|
|
; CHECK-NEXT: comdat g9
|
|
|
|
; CHECK-NEXT: fallback _g9
|
|
|
|
@g10 = weak alias i32, i32* @g9
|