• 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++\" { \"aaa*\"; }; };" > %t.script
5# RUN: ld.lld --version-script %t.script -shared %t.o -o %t.so
6# RUN: llvm-readobj --dyn-syms %t.so | FileCheck %s --check-prefix=NOMATCH
7
8# NOMATCH:     DynamicSymbols [
9# NOMATCH-NOT:   _Z3aaaPf@@FOO
10# NOMATCH-NOT:   _Z3aaaPi@@FOO
11# NOMATCH:     ]
12
13# RUN: echo "FOO { global: extern \"C++\" { \"aaa*\"; aaa*; }; };" > %t2.script
14# RUN: ld.lld --version-script %t2.script -shared %t.o -o %t2.so
15# RUN: llvm-readobj --dyn-syms %t2.so | FileCheck %s --check-prefix=MATCH
16# MATCH:   DynamicSymbols [
17# MATCH:     _Z3aaaPf@@FOO
18# MATCH:     _Z3aaaPi@@FOO
19# MATCH:   ]
20
21.text
22.globl _Z3aaaPi
23.type _Z3aaaPi,@function
24_Z3aaaPi:
25retq
26
27.globl _Z3aaaPf
28.type _Z3aaaPf,@function
29_Z3aaaPf:
30retq
31