xref: /llvm-project/llvm/test/DebugInfo/X86/debug-macinfo-strp.s (revision 93aee9ca8698111b2df2fda2a1a5a2f3ce4fc014)
1*93aee9caSSourabh Singh Tomar## This test checks that llvm-dwarfdump produces
2*93aee9caSSourabh Singh Tomar## DW_MACINFO_invalid when parsing *_strp
3*93aee9caSSourabh Singh Tomar## form in a debug_macinfo section.
4*93aee9caSSourabh Singh Tomar
5*93aee9caSSourabh Singh Tomar# RUN: llvm-mc -triple x86_64-unknown-linux -filetype=obj %s -o -| \
6*93aee9caSSourabh Singh Tomar# RUN:  llvm-dwarfdump -debug-macro - | FileCheck %s
7*93aee9caSSourabh Singh Tomar
8*93aee9caSSourabh Singh Tomar#      CHECK: .debug_macinfo contents:
9*93aee9caSSourabh Singh Tomar# CHECK-NEXT: 0x00000000:
10*93aee9caSSourabh Singh Tomar# CHECK-NEXT: DW_MACINFO_invalid
11*93aee9caSSourabh Singh Tomar
12*93aee9caSSourabh Singh Tomar       .section        .debug_macinfo,"",@progbits
13*93aee9caSSourabh Singh Tomar.Lcu_macinfo_begin0:
14*93aee9caSSourabh Singh Tomar       .byte   5                      # DW_MACRO_define_strp
15