[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / version-script-extern-undefined.s
blob38114229e0ce3b3cd3d55d77c82d1e6a2aa0c33d
1 # REQUIRES: x86
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 [
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: _Z3abbi
16 # CHECK-NEXT: }
17 # CHECK-NEXT: ]
19 .globl _Z3abbi