[ELF] Make SyntheticSection parameter order match InputSection
[llvm-project.git] / lld / test / ELF / warn-unresolved-symbols-hidden.s
blobbef8b6705f6b4a02b51b4f41783d56ec0fcdbe1b
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: not ld.lld -shared %t.o -o /dev/null -z defs --warn-unresolved-symbols 2>&1| FileCheck %s
5 # CHECK: warning: undefined symbol: foo
6 # CHECK: error: undefined hidden symbol: bar
7 # CHECK: error: undefined protected symbol: zed
9 .data
10 .quad foo
11 .hidden bar
12 .quad bar
13 .protected zed
14 .quad zed