3 # RUN: llvm-mc -filetype=obj -triple=x86_64-linux-gnu -o %t1.o %S/Inputs/shlib-undefined-ref.s
4 # RUN: ld.lld -shared -o %t.so %t1.o
6 # RUN: llvm-mc -filetype=obj -triple=x86_64-linux-gnu -o %t2.o %s
7 # RUN: echo "{ local: *; };" > %t.script
8 # RUN: not ld.lld -version-script %t.script %t2.o %t.so -o /dev/null 2>&1 | FileCheck %s --check-prefix=ERR
10 # ERR: error: non-exported symbol 'should_not_be_exported' in '{{.*}}tmp2.o' is referenced by DSO '{{.*}}tmp.so'
12 .globl should_not_be_exported
13 should_not_be_exported
: