1# RUN: llvm-mc %s -filetype=obj -triple=x86_64-pc-linux -o %t 2 3# RUN: llvm-objdump -section-headers %t | FileCheck %s 4# CHECK: Idx Name 5# CHECK: 3 .foo 6# CHECK-NEXT: 4 .bar 7# CHECK-NEXT: 5 .zed 8 9## Check we report the valid section index 10## when requesting a specific section. 11# RUN: llvm-objdump -section-headers -section=.bar %t \ 12# RUN: | FileCheck %s --check-prefix=BAR 13# BAR: Idx Name 14# BAR-NEXT: 4 .bar 15# BAR-NOT: foo 16# BAR-NOT: zed 17 18.section .foo, "ax", %progbits 19nop 20 21.section .bar, "ax", %progbits 22nop 23 24.section .zed, "ax", %progbits 25nop 26