2012-11-13 22:04:09 +00:00
|
|
|
; The purpose of this test is to verify that weak linkage type is not ignored by backend,
|
|
|
|
; if section was specialized.
|
|
|
|
|
2013-04-12 04:06:46 +00:00
|
|
|
; RUN: llc -filetype=obj -mtriple i686-pc-win32 %s -o - | llvm-readobj -s -sd | FileCheck %s
|
2012-11-13 22:04:09 +00:00
|
|
|
|
|
|
|
@a = weak unnamed_addr constant { i32, i32, i32 } { i32 0, i32 0, i32 0}, section ".data"
|
|
|
|
|
2013-04-12 04:06:46 +00:00
|
|
|
; CHECK: Name: .data$a
|
|
|
|
; CHECK-NEXT: VirtualSize: 0
|
|
|
|
; CHECK-NEXT: VirtualAddress: 0
|
|
|
|
; CHECK-NEXT: RawDataSize: {{[0-9]+}}
|
|
|
|
; CHECK-NEXT: PointerToRawData: 0x{{[0-9A-F]+}}
|
|
|
|
; CHECK-NEXT: PointerToRelocations: 0x0
|
|
|
|
; CHECK-NEXT: PointerToLineNumbers: 0x0
|
|
|
|
; CHECK-NEXT: RelocationCount: 0
|
|
|
|
; CHECK-NEXT: LineNumberCount: 0
|
|
|
|
; CHECK-NEXT: Characteristics [ (0x40401040)
|
|
|
|
; CHECK-NEXT: IMAGE_SCN_ALIGN_8BYTES
|
2012-11-13 22:04:09 +00:00
|
|
|
; CHECK-NEXT: IMAGE_SCN_CNT_INITIALIZED_DATA
|
|
|
|
; CHECK-NEXT: IMAGE_SCN_LNK_COMDAT
|
|
|
|
; CHECK-NEXT: IMAGE_SCN_MEM_READ
|
2013-04-12 04:06:46 +00:00
|
|
|
; CHECK-NEXT: ]
|
|
|
|
; CHECK-NEXT: SectionData (
|
|
|
|
; CHECK-NEXT: 0000: 00000000 00000000 00000000
|
|
|
|
; CHECK-NEXT: )
|