blob: 9e3d9e152104c253af0918d130e65e63c55a4af6 [file] [log] [blame]
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: not ld.lld -shared %t.o -o /dev/null -z defs --warn-unresolved-symbols 2>&1| FileCheck %s
# CHECK: warning: undefined symbol: foo
# CHECK: error: undefined symbol: bar
# CHECK: error: undefined symbol: zed
.data
.quad foo
.hidden bar
.quad bar
.protected zed
.quad zed