1# REQUIRES: x86
2# RUN: mkdir -p %t.dir
3# RUN: cd %t.dir
4# RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
5# RUN: ld.lld %t.o -o t.so -shared -version-script %p/Inputs/empty-ver.ver
6# RUN: llvm-readobj --version-info t.so | FileCheck %s
7
8# CHECK:      VersionSymbols [
9# CHECK-NEXT:   Symbol {
10# CHECK-NEXT:     Version: 0
11# CHECK-NEXT:     Name:
12# CHECK-NEXT:   }
13# CHECK-NEXT:   Symbol {
14# CHECK-NEXT:     Version: 1
15# CHECK-NEXT:     Name: bar@
16# CHECK-NEXT:   }
17# CHECK-NEXT: ]
18
19.global bar@
20bar@:
21