1 # RUN: rm -rf %t && split-file %s %t
2 # RUN: yaml2obj %t/v5.yaml -o %t/v5.o
3 # RUN: not llvm-dwarfdump -debug-str-offsets -verify %t/v5.o | FileCheck %s
4 # RUN: yaml2obj %t/v4.yaml -o %t/v4.o
5 # RUN: not llvm-dwarfdump -debug-str-offsets -verify %t/v4.o | FileCheck --check-prefix=V4 %s
7 # CHECK: Verifying .debug_abbrev...
8 # CHECK: Verifying .debug_str_offsets...
9 # CHECK-NEXT: error: .debug_str_offsets: contribution 0x0: index 0x2: invalid string offset *0x10 == 0x1, is neither zero nor immediately following a null character
10 # CHECK-NEXT: error: .debug_str_offsets: contribution 0x0: index 0x3: invalid string offset *0x14 == 0x42, is beyond the bounds of the string section of length 0x8
11 # CHECK-NEXT: error: .debug_str_offsets: contribution 0x18: invalid version 42
12 # CHECK-NEXT: error: .debug_str_offsets: contribution 0x20: invalid length ((length (0x5) - header (0x4)) % offset size 0x4 == 0x1 != 0)
13 # CHECK-NEXT: error: .debug_str_offsets: contribution 0x29: length exceeds available space (contribution offset (0x29) + length field space (0x4) + length (0x5000000) == 0x500002D > section size 0x30)
16 # V4: error: .debug_str_offsets: contribution 0x0: index 0x2: invalid string offset *0x8 == 0x2, is neither zero nor immediately following a null character
33 - Name: '.debug_str_offsets'
35 Content: "000000000400000002000000"
49 UnitType: DW_UT_compile