You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
375 B

# 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 hidden symbol: bar
# CHECK: error: undefined protected symbol: zed
.data
.quad foo
.hidden bar
.quad bar
.protected zed
.quad zed