1## Check we correctly set the sh_info field of .symtab section.
2## A symbol table section's sh_info section header member holds
3## the symbol table index for the first non-local symbol.
4
5# RUN: yaml2obj --docnum=1 %s -o %t
6# RUN: llvm-readobj --sections %t | FileCheck %s --check-prefix=ONE
7# ONE: Name: .symtab
8# ONE: Info: 2
9
10--- !ELF
11FileHeader:
12  Class: ELFCLASS64
13  Data:  ELFDATA2LSB
14  Type:  ET_DYN
15Symbols:
16  - Name: local
17  - Name: global
18    Binding: STB_GLOBAL
19
20# RUN: yaml2obj --docnum=2 %s -o %t
21# RUN: llvm-readobj --sections %t | FileCheck %s --check-prefix=TWO
22# TWO: Name: .symtab
23# TWO: Info: 3
24
25--- !ELF
26FileHeader:
27  Class: ELFCLASS64
28  Data:  ELFDATA2LSB
29  Type:  ET_DYN
30Symbols:
31  - Name:    local1
32  - Name:    local2
33  - Name:    global
34    Binding: STB_GLOBAL
35