Use "isa" since the variable isn't used.
[llvm-complete.git] / test / Object / yaml2obj-elf-symbol-LocalGlobalWeak.yaml
blob47162e76c2d7a1b9a3bf031419e31e143ed02f69
1 # RUN: yaml2obj %s | llvm-readobj --symbols - | FileCheck %s
2 !ELF
3 FileHeader:
4   Class: ELFCLASS64
5   Data: ELFDATA2LSB
6   Type: ET_REL
7   Machine: EM_X86_64
8 Sections:
9   - Name: .data
10     Type: SHT_PROGBITS
11     Flags: [ SHF_ALLOC, SHF_WRITE ]
12     Content: "DEADBEEF"
13 Symbols:
14   - Name:    local_symbol
15     Type:    STT_OBJECT
16     Section: .data
17   - Name:    global_symbol
18     Type:    STT_OBJECT
19     Section: .data
20     Binding: STB_GLOBAL
21   - Name:    weak_symbol
22     Type:    STT_OBJECT
23     Section: .data
24     Binding: STB_WEAK
26 # CHECK: Symbol {
27 # CHECK:   Name:  (0)
28 # CHECK: Symbol {
29 # CHECK:   Name: local_symbol
30 # CHECK:   Binding: Local
31 # CHECK: Symbol {
32 # CHECK:   Name: global_symbol
33 # CHECK:   Binding: Global
34 # CHECK: Symbol {
35 # CHECK:   Name: weak_symbol
36 # CHECK:   Binding: Weak