summaryrefslogtreecommitdiffstats
path: root/lld/test/pecoff/merge-largest.test
blob: 73d2d94066051cf0c750f8d39fbd291a6c3c345d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# RUN: yaml2obj %p/Inputs/merge-largest1.obj.yaml > %t1.obj
# RUN: yaml2obj %p/Inputs/merge-largest2.obj.yaml > %t2.obj
#
# RUN: lld -flavor link /out:%t.exe /subsystem:console /opt:noref /force \
# RUN:   -- %t1.obj %t2.obj 2>&1 > %t.log
#
# FileCheck complains if the input files is empty, so add a dummy line.
# RUN: echo foo >> %t.log
# RUN: FileCheck -check-prefix=STDERR %s < %t.log
#
# RUN: llvm-readobj -sections %t.exe | FileCheck -check-prefix=READOBJ %s

STDERR-NOT: duplicate symbol error

READOBJ:      Format: COFF-i386
READOBJ-NEXT: Arch: i386
READOBJ-NEXT: AddressSize: 32bit
READOBJ-NEXT: Sections [
READOBJ-NEXT:   Section {
READOBJ-NEXT:     Number: 1
READOBJ-NEXT:     Name: .text (2E 74 65 78 74 00 00 00)
READOBJ-NEXT:     VirtualSize: 0x8
READOBJ-NEXT:     VirtualAddress: 0x1000
READOBJ-NEXT:     RawDataSize: 8
OpenPOWER on IntegriCloud