• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# REQUIRES: x86
2
3# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
4# RUN: echo "FOO { global: extern \"C++\" { foo*; }; };" > %t.script
5# RUN: echo "BAR { global: extern \"C++\" { zed*; bar; }; };" >> %t.script
6# RUN: ld.lld --version-script %t.script -shared %t.o -o %t.so
7# RUN: llvm-readobj -V --dyn-syms %t.so | FileCheck %s
8
9# CHECK:  VersionSymbols [
10# CHECK:    Name: _Z3bari
11# CHECK:    Name: _Z3fooi@@FOO
12# CHECK:    Name: _Z3zedi@@BAR
13
14.text
15.globl _Z3fooi
16.type _Z3fooi,@function
17_Z3fooi:
18retq
19
20.globl _Z3bari
21.type _Z3bari,@function
22_Z3bari:
23retq
24
25.globl _Z3zedi
26.type _Z3zedi,@function
27_Z3zedi:
28retq
29