3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
7 # RUN: extern "C++" { \
13 # RUN: }; ' > %t.script
14 # RUN: ld.lld --version-script %t.script -shared %t.o -o %t.so
15 # RUN: llvm-readobj --dyn-syms %t.so | FileCheck %s
17 # CHECK: DynamicSymbols [
18 # CHECK-NEXT: Symbol {
22 # CHECK-NEXT: Binding: Local
25 # CHECK-NEXT: Section:
27 # CHECK-NEXT: Symbol {
28 # CHECK-NEXT: Name: _Z3bari
31 # CHECK-NEXT: Binding: Global
34 # CHECK-NEXT: Section:
36 # CHECK-NEXT: Symbol {
37 # CHECK-NEXT: Name: _Z3fooi
40 # CHECK-NEXT: Binding: Global
43 # CHECK-NEXT: Section:
45 # CHECK-NEXT: Symbol {
46 # CHECK-NEXT: Name: _Z3zedi
49 # CHECK-NEXT: Binding: Global
52 # CHECK-NEXT: Section:
54 # CHECK-NEXT: Symbol {
55 # CHECK-NEXT: Name: _ZSt3qux
58 # CHECK-NEXT: Binding: Global
61 # CHECK-NEXT: Section: