1# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o 2# RUN: not ld.lld %t.o -o %t.so -shared 2>&1 | FileCheck %s 3 4# CHECK: error: {{.*}}:(.data+0x0): undefined symbol 'hidden' 5.global hidden 6.hidden hidden 7 8# CHECK: error: {{.*}}:(.data+0x8): undefined symbol 'internal' 9.global internal 10.internal internal 11 12# CHECK: error: {{.*}}:(.data+0x10): undefined symbol 'protected' 13.global protected 14.protected protected 15 16.section .data, "a" 17 .quad hidden 18 .quad internal 19 .quad protected 20