1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/undef-shared2.s -o %t2.o
4# RUN: not ld.lld %t.o %t2.o -o /dev/null -shared 2>&1 | FileCheck %s
5# RUN: not ld.lld %t2.o %t.o -o /dev/null -shared 2>&1 | FileCheck %s
6
7# CHECK: error: undefined protected symbol: foo
8
9.data
10.quad foo
11.protected foo
12