[lit] Add argument check: --timeout must be non-negative integer
[llvm-core.git] / test / tools / yaml2obj / elf-symbol-binding.yaml
blob185f8155bca7e9a683aa283daaa30d7725444120
1 ## Check we can set different bindings for symbols.
3 # RUN: yaml2obj %s | llvm-readobj --symbols - | FileCheck %s
5 !ELF
6 FileHeader:
7   Class:   ELFCLASS64
8   Data:    ELFDATA2LSB
9   Type:    ET_REL
10   Machine: EM_X86_64
11 Symbols:
12   - Name:    local_symbol
13     Type:    STT_OBJECT
14     Binding: STB_LOCAL
15   - Name:    global_symbol
16     Type:    STT_OBJECT
17     Binding: STB_GLOBAL
18   - Name:    weak_symbol
19     Type:    STT_OBJECT
20     Binding: STB_WEAK
22 # CHECK: Symbol {
23 # CHECK:   Name:  (0)
24 # CHECK: Symbol {
25 # CHECK:   Name: local_symbol
26 # CHECK:   Binding: Local
27 # CHECK: Symbol {
28 # CHECK:   Name: global_symbol
29 # CHECK:   Binding: Global
30 # CHECK: Symbol {
31 # CHECK:   Name: weak_symbol
32 # CHECK:   Binding: Weak