[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git] / llvm / test / Object / coff-invalid.test
blobda5d687c6e2087978138eff8a3d2eafdedd415b8
1 RUN: llvm-readobj -S %p/Inputs/invalid-bad-section-address.coff 2>&1 | \
2 RUN: FileCheck --check-prefix=SECTIONS %s
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
10 RUN: not --crash llvm-readobj -r %p/Inputs/invalid-bad-section-address.coff 2>&1 | \
11 RUN: FileCheck %s
13 CHECK: Sections with relocations should have an address of 0