forked from OSchip/llvm-project
[ELF] - Simplify the conflict-variable-linkage-name.s test case. [NFC]
This is a follow up requested during post commit review for "[lld] r333880 - [ELF] - Also use DW_AT_linkage_name when gathering information about variables for error messages." It removes checking of the input objects since it is really excessive. llvm-svn: 334946
This commit is contained in:
parent
487da729a2
commit
507a924e21
|
@ -1,25 +1,7 @@
|
|||
# REQUIRES: x86
|
||||
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
|
||||
# RUN: llvm-dwarfdump %t.o | FileCheck -check-prefix=INPUT %s
|
||||
# RUN: not ld.lld %t.o %t.o -o %t 2>&1 | FileCheck %s
|
||||
|
||||
# INPUT: DW_TAG_variable
|
||||
# INPUT-NEXT: DW_AT_name ("bar")
|
||||
# INPUT-NEXT: DW_AT_type (0x0000003d "int")
|
||||
# INPUT-NEXT: DW_AT_external (true)
|
||||
# INPUT-NEXT: DW_AT_decl_file ("/path{{/|\\}}1.cpp")
|
||||
# INPUT-NEXT: DW_AT_decl_line (2)
|
||||
# INPUT-NEXT: DW_AT_location (DW_OP_addr 0x0)
|
||||
# INPUT-NEXT: DW_AT_linkage_name ("_ZN1A3barE")
|
||||
# INPUT: DW_TAG_variable
|
||||
# INPUT-NEXT: DW_AT_name ("bar")
|
||||
# INPUT-NEXT: DW_AT_type (0x0000003d "int")
|
||||
# INPUT-NEXT: DW_AT_external (true)
|
||||
# INPUT-NEXT: DW_AT_decl_file ("/path{{/|\\}}1.cpp")
|
||||
# INPUT-NEXT: DW_AT_decl_line (6)
|
||||
# INPUT-NEXT: DW_AT_location (DW_OP_addr 0x0)
|
||||
# INPUT-NEXT: DW_AT_linkage_name ("_ZN1Z3barE")
|
||||
|
||||
## Check we can report the locations of 2 different "bar" variables.
|
||||
# CHECK: duplicate symbol: A::bar
|
||||
# CHECK-NEXT: >>> defined at 1.cpp:2
|
||||
|
|
Loading…
Reference in New Issue