[RISCV] emit .option directive for functions with target features which differ from...
[llvm-project.git] / llvm / test / DebugInfo / X86 / skeleton-unit-verify.s
blobd9c7436d1c750c507434f4b70f483811a04e7e75
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
20 .byte 3 # DW_AT_name
21 .byte 8 # DW_FORM_string
22 .byte 0 # EOM(1)
23 .byte 0 # EOM(2)
24 .byte 2 # Abbreviation Code
25 .byte 74 # DW_TAG_skeleton_unit
26 .byte 1 # DW_CHILDREN_yes
27 .byte 0 # EOM(1)
28 .byte 0 # EOM(2)
29 .byte 0 # EOM(3)
31 .section .debug_info,"",@progbits
32 .Lcu_begin0:
33 .long .Lcu_end0-.Lcu_start0 # Length of Unit
34 .Lcu_start0:
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
40 .byte 1 # Abbrev [1]
41 .asciz "test.cpp"
42 .byte 0
43 .Lcu_end0:
44 .long .Lcu_end1-.Lcu_start1 # Length of Unit
45 .Lcu_start1:
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
51 .byte 2 # Abbrev [2]
52 .byte 0
53 .Lcu_end1: