3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
4 # RUN: echo "FOO { global: extern \"C++\" { \"abb(int)\"; }; };" > %t.script
5 # RUN: ld.lld --version-script %t.script --undefined-version -shared %t.o -o %t.so
6 # RUN: llvm-readobj -V %t.so | FileCheck %s
8 # CHECK: VersionSymbols [
10 # CHECK-NEXT: Version: 0
13 # CHECK-NEXT: Symbol {
14 # CHECK-NEXT: Version: 1
15 # CHECK-NEXT: Name: _Z3abbi