41 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: llvm-objdump -d -C %t | FileCheck --check-prefix=DEMANGLE %s3# RUN: llvm-objdump -d --demangle %t | FileCheck --check-prefix=DEMANGLE %s4# RUN: llvm-objdump -d %t | FileCheck --check-prefix=NO-DEMANGLE %s5 6!ELF7FileHeader:8 Class: ELFCLASS649 Data: ELFDATA2LSB10 Type: ET_EXEC11 Machine: EM_X86_6412Sections:13 - Name: .text114 Type: SHT_PROGBITS15 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]16 Address: 0x100017 AddressAlign: 0x000000000000001018 Content: "0000000000000000"19 - Name: .text220 Type: SHT_PROGBITS21 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]22 Address: 0x101023 AddressAlign: 0x000000000000001024 Content: "0000000000000000"25Symbols:26 - Name: _Z3fooi27 Type: STT_FUNC28 Section: .text129 Value: 0x100030 - Name: _Z3foov31 Type: STT_FUNC32 Section: .text233 Value: 0x101034 35# We just want to check that the symbols are demangled36# DEMANGLE: foo(int)37# DEMANGLE: foo()38 39# NO-DEMANGLE: _Z3fooi40# NO-DEMANGLE: _Z3foov41