[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / version-script-extern2.s
blob1620297592afdfc7946d560dad692ee90c02d850
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++\" { \"bar\"; }; };" > %t.script
5 # RUN: ld.lld --version-script %t.script -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: 2
15 # CHECK-NEXT: Name: bar@@FOO
16 # CHECK-NEXT: }
17 # CHECK-NEXT: ]
19 .globl bar
20 .type bar,@function
21 bar:
22 retq