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