[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / lld / test / ELF / string-table.s
blob2443a9b406317b9bea6d2ebf26a18061659ee863
1 // REQUIRES: x86
2 // RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
3 // RUN: ld.lld %t -o %t2
4 // RUN: llvm-readobj --sections %t2 | FileCheck %s
6 .global _start
7 _start:
9 .section foobar,"",@progbits
11 .section bar, "a"
13 // Both sections are in the output and that the alloc section is first:
14 // CHECK: Name: bar
15 // CHECK-NEXT: Type: SHT_PROGBITS
16 // CHECK-NEXT: Flags [
17 // CHECK-NEXT: SHF_ALLOC
18 // CHECK-NEXT: ]
19 // CHECK-NEXT: Address: 0x200120
21 // CHECK: Name: foobar
22 // CHECK-NEXT: Type: SHT_PROGBITS
23 // CHECK-NEXT: Flags [
24 // CHECK-NEXT: ]
25 // CHECK-NEXT: Address: 0x0
27 // CHECK-NOT: Name: foobar