41 lines · plain
1## Test llvm-nm demangling of symbols for XCOFF object files.2## Test following symbols:3## 1. Empty name4## 2. Name consisting solely of .5## 3. Name starting with . that can't be demangled6## 4. Name starting with . that can be demangled7## 5. Name not starting with . that can't be demangled8## 6. Name not starting with . that can be demangled9 10# RUN: yaml2obj --docnum=1 %s -o %t.o11# RUN: llvm-nm --demangle --format=just-symbols %t.o 2>&1 | FileCheck %s --check-prefix=NM-DEMANGLE --match-full-lines12 13# NM-DEMANGLE: {{$}}14# NM-DEMANGLE-NEXT: .15# NM-DEMANGLE-NEXT: ._5func1i16# NM-DEMANGLE-NEXT: .func1(int)17# NM-DEMANGLE-NEXT: L5func0v18# NM-DEMANGLE-NEXT: func0()19 20--- !XCOFF21FileHeader:22 MagicNumber: 0x1DF23Sections:24 - Name: .text25 Flags: [ STYP_TEXT ]26 - Name: .data27 Flags: [ STYP_DATA ]28Symbols:29 - Name: ""30 Section: .text31 - Name: .32 Section: .text33 - Name: ._Z5func1i34 Section: .text35 - Name: ._5func1i36 Section: .text37 - Name: _ZL5func0v38 Section: .data39 - Name: L5func0v40 Section: .data41