[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / undef-shared.s
blob26e72f381ff32b8b4af5ac1d355e19db56b16da5
1 # REQUIRES: x86
2 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
3 # RUN: not ld.lld %t.o -o /dev/null -shared 2>&1 | FileCheck %s
5 # CHECK: error: undefined hidden symbol: hidden
6 # CHECK: >>> referenced by {{.*}}:(.data+0x0)
7 .global hidden
8 .hidden hidden
10 # CHECK: error: undefined internal symbol: internal
11 # CHECK: >>> referenced by {{.*}}:(.data+0x8)
12 .global internal
13 .internal internal
15 # CHECK: error: undefined protected symbol: protected
16 # CHECK: >>> referenced by {{.*}}:(.data+0x10)
17 .global protected
18 .protected protected
20 .section .data, "a"
21 .quad hidden
22 .quad internal
23 .quad protected