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-symbols %t.so | FileCheck %s 8 9# CHECK: Version symbols { 10# CHECK: Symbols [ 11# CHECK: Name: _Z3bari@ 12# CHECK: Name: _Z3fooi@@FOO 13# CHECK: Name: _Z3zedi@@BAR 14 15.text 16.globl _Z3fooi 17.type _Z3fooi,@function 18_Z3fooi: 19retq 20 21.globl _Z3bari 22.type _Z3bari,@function 23_Z3bari: 24retq 25 26.globl _Z3zedi 27.type _Z3zedi,@function 28_Z3zedi: 29retq 30