Check that COFF .obj files have sections with zero virtual address spaces.
[oota-llvm.git] / test / Object / coff-invalid.test
1 RUN: llvm-readobj -s %p/Inputs/invalid-bad-section-address.coff 2>&1 | \
2 RUN: FileCheck --check-prefix=SECTIONS %s
3
4 SECTIONS:      Section {
5 SECTIONS-NEXT:   Number: 1
6 SECTIONS-NEXT:   Name: .text (2E 74 65 78 74 00 00 00)
7 SECTIONS-NEXT:   VirtualSize: 0x0
8 SECTIONS-NEXT:   VirtualAddress: 0x1000000
9
10 RUN: not llvm-readobj -r %p/Inputs/invalid-bad-section-address.coff 2>&1 | \
11 RUN: FileCheck %s
12
13 CHECK: Sections with relocations should have an address of 0