• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %s > %t
2# RUN: llvm-objdump -d -C %t | FileCheck --check-prefix=DEMANGLE %s
3# RUN: llvm-objdump -d --demangle=itanium %t | FileCheck --check-prefix=DEMANGLE %s
4# RUN: llvm-objdump -d %t | FileCheck --check-prefix=NO-DEMANGLE %s
5# RUN: llvm-objdump -d --demangle=none %t | FileCheck --check-prefix=NO-DEMANGLE %s
6# RUN: llvm-objdump -d -C=wrong-style %t 2>&1 | FileCheck --check-prefix=BAD-STYLE %s
7
8!ELF
9FileHeader:
10  Class:           ELFCLASS64
11  Data:            ELFDATA2LSB
12  Type:            ET_EXEC
13  Machine:         EM_X86_64
14Sections:
15  - Name:            .text1
16    Type:            SHT_PROGBITS
17    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
18    Address:         0x1000
19    AddressAlign:    0x0000000000000010
20    Content:         "0000000000000000"
21  - Name:            .text2
22    Type:            SHT_PROGBITS
23    Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
24    Address:         0x1010
25    AddressAlign:    0x0000000000000010
26    Content:         "0000000000000000"
27Symbols:
28  Local:
29    - Name:     _Z3fooi
30      Type:     STT_FUNC
31      Section:  .text1
32      Value:    0x1000
33    - Name:     _Z3foov
34      Type:     STT_FUNC
35      Section:  .text2
36      Value:    0x1010
37
38# We just want to check that the symbols are demangled
39# DEMANGLE: foo(int)
40# DEMANGLE: foo()
41
42# NO-DEMANGLE: _Z3fooi
43# NO-DEMANGLE: _Z3foov
44
45# BAD-STYLE: warning: Unsupported demangling style.
46# BAD-STYLE: _Z3fooi
47# BAD-STYLE: _Z3foov
48