32 lines · yaml
1# RUN: yaml2obj %s | not llvm-objdump -s - 2>&1 | FileCheck %s2 3# Check that data symbols must have and offset that is within the4# bounds of the containing segment5 6# CHECK: invalid data symbol offset: `foo` (offset: 42 segment size: 5)7 8--- !WASM9FileHeader:10 Version: 0x0000000111Sections:12 - Type: DATA13 Segments:14 - SectionOffset: 015 InitFlags: 016 Offset:17 Opcode: I32_CONST18 Value: 019 Content: '6401020304'20 - Type: CUSTOM21 Name: linking22 Version: 223 SymbolTable:24 - Index: 025 Kind: DATA26 Name: foo27 Flags: [ ]28 Segment: 029 Offset: 4230 Size: 131...32