• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; The purpose of this test is to verify that weak linkage type is not ignored by backend,
2; if section was specialized.
3
4; RUN: llc -filetype=obj -mtriple i686-pc-win32 %s -o - | coff-dump.py | FileCheck %s
5
6@a = weak unnamed_addr constant { i32, i32, i32 } { i32 0, i32 0, i32 0}, section ".data"
7
8; CHECK:           Name                     = .data$a
9; CHECK-NEXT:      VirtualSize              = 0
10; CHECK-NEXT:      VirtualAddress           = 0
11; CHECK-NEXT:      SizeOfRawData            = {{[0-9]+}}
12; CHECK-NEXT:      PointerToRawData         = 0x{{[0-9A-F]+}}
13; CHECK-NEXT:      PointerToRelocations     = 0x0
14; CHECK-NEXT:      PointerToLineNumbers     = 0x0
15; CHECK-NEXT:      NumberOfRelocations      = 0
16; CHECK-NEXT:      NumberOfLineNumbers      = 0
17; CHECK-NEXT:      Charateristics           = 0x40401040
18; CHECK-NEXT:        IMAGE_SCN_CNT_INITIALIZED_DATA
19; CHECK-NEXT:        IMAGE_SCN_LNK_COMDAT
20; CHECK-NEXT:        IMAGE_SCN_ALIGN_8BYTES
21; CHECK-NEXT:        IMAGE_SCN_MEM_READ
22; CHECK-NEXT:      SectionData              =
23; CHECK-NEXT:        00 00 00 00 00 00 00 00 - 00 00 00 00
24