1 # RUN: llvm-mc -triple x86_64-unknown-linux %s -filetype=obj -o %t.o
2 # RUN: not llvm-dwarfdump --verify %t.o | FileCheck %s
4 # CHECK: Verifying .debug_abbrev...
5 # CHECK-NEXT: Verifying .debug_info Unit Header Chain...
6 # CHECK-NEXT: Verifying .debug_types Unit Header Chain...
7 # CHECK-NEXT: Verifying non-dwo Units...
8 # CHECK-NEXT: Verifying unit: 1 / 2, "test.cpp"
9 # CHECK-NEXT: Verifying unit: 2 / 2{{$}}
10 # CHECK-NEXT: warning: DW_TAG_skeleton_unit has DW_CHILDREN_yes but DIE has no children
11 # CHECK-NEXT: DW_TAG_skeleton_unit
12 # CHECK-NEXT: error: Skeleton compilation unit has children.
13 # CHECK-NEXT: Verifying dwo Units...
14 # CHECK-NEXT: Errors detected.
16 .section .debug_abbrev,"",@progbits
17 .byte 1 # Abbreviation Code
18 .byte 74 # DW_TAG_skeleton_unit
19 .byte 0 # DW_CHILDREN_no
21 .byte 8 # DW_FORM_string
24 .byte 2 # Abbreviation Code
25 .byte 74 # DW_TAG_skeleton_unit
26 .byte 1 # DW_CHILDREN_yes
31 .section .debug_info,"",@progbits
33 .long .Lcu_end0-.Lcu_start0 # Length of Unit
35 .short 5 # DWARF version number
36 .byte 4 # DWARF Unit Type
37 .byte 8 # Address Size (in bytes)
38 .long .debug_abbrev # Offset Into Abbrev. Section
39 .quad -6573227469967412476
44 .long .Lcu_end1-.Lcu_start1 # Length of Unit
46 .short 5 # DWARF version number
47 .byte 4 # DWARF Unit Type
48 .byte 8 # Address Size (in bytes)
49 .long .debug_abbrev # Offset Into Abbrev. Section
50 .quad -6573227469967412476