2016-04-24 10:31:04 +08:00
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
|
2016-04-24 10:42:34 +08:00
|
|
|
# RUN: not ld.lld %t.o -o %t.so -shared 2>&1 | FileCheck %s
|
2016-04-24 10:31:04 +08:00
|
|
|
|
|
|
|
# CHECK: undefined symbol: hidden in {{.*}}
|
|
|
|
.global hidden
|
|
|
|
.hidden hidden
|
|
|
|
|
|
|
|
# CHECK: undefined symbol: internal in {{.*}}
|
|
|
|
.global internal
|
|
|
|
.internal internal
|
|
|
|
|
|
|
|
# CHECK: undefined symbol: protected in {{.*}}
|
|
|
|
.global protected
|
|
|
|
.protected protected
|