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)
10 # CHECK: error: undefined internal symbol: internal
11 # CHECK: >>> referenced by {{.*}}:(.data+0x8)
15 # CHECK: error: undefined protected symbol: protected
16 # CHECK: >>> referenced by {{.*}}:(.data+0x10)