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 [
9 # CHECK-NEXT: Version: 0
12 # CHECK-NEXT: Symbol {
13 # CHECK-NEXT: Version: 2
14 # CHECK-NEXT: Name: foo@VER1
16 # CHECK-NEXT: Symbol {
17 # CHECK-NEXT: Version: 3
18 # CHECK-NEXT: Name: foo@@VER2
28 .symver zed, foo@@VER2