[clang-tidy][modernize-use-starts-ends-with] Fix operator rewriting false negative...
[llvm-project.git] / lld / test / ELF / version-script-symver2.s
blobad67461cfb40bfc97ce3672d94514dbf2bedccba
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 # RUN: echo "VER1 { global: foo; local: *; }; VER2 { global: foo; }; VER3 { global: foo; };" > %t.map
4 # RUN: ld.lld -shared %t.o --version-script %t.map -o %t.so --fatal-warnings
5 # RUN: llvm-readobj -V %t.so | FileCheck %s
7 # CHECK: VersionSymbols [
8 # CHECK-NEXT: Symbol {
9 # CHECK-NEXT: Version: 0
10 # CHECK-NEXT: Name:
11 # CHECK-NEXT: }
12 # CHECK-NEXT: Symbol {
13 # CHECK-NEXT: Version: 2
14 # CHECK-NEXT: Name: foo@VER1
15 # CHECK-NEXT: }
16 # CHECK-NEXT: Symbol {
17 # CHECK-NEXT: Version: 3
18 # CHECK-NEXT: Name: foo@@VER2
19 # CHECK-NEXT: }
20 # CHECK-NEXT: ]
22 .global bar
23 bar:
24 .symver bar, foo@VER1
26 .global zed
27 zed:
28 .symver zed, foo@@VER2