xref: /llvm-project/llvm/test/tools/llvm-dwp/X86/handle_strx.test (revision 6139626d738fd03b968e07698f5cd26924e3cd65)
1RUN: llvm-dwp %p/../Inputs/handle_strx/dw5.dwo -o %t 2>/dev/null
2RUN: llvm-dwarfdump --verbose %t 2>/dev/null | FileCheck --check-prefix=READ_STRX %s
3
4RUN: not llvm-dwp %p/../Inputs/handle_strx/dw5.dwo %p/../Inputs/handle_strx/dw5.dwo -o %t 2>&1 \
5RUN:   | FileCheck --check-prefix=PARSE_STRX %s
6
7
8dw5.o is compiled from a file that contains a single empty void function,
9with options -gdwarf-5 and -gsplit-dwarf.
10
11READ_STRX: DW_AT_name [DW_FORM_strx1]{{.*}}dw5.cc
12
13PARSE_STRX: error: duplicate DWO ID ({{.*}}) in 'dw5.cc' (from 'dw5.dwo') and 'dw5.cc' (from 'dw5.dwo')
14
15