2017-01-27 23:52:08 +08:00
|
|
|
# REQUIRES: x86
|
|
|
|
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
|
|
|
|
# RUN: not ld.lld -shared %t.o -o %t.so -z defs --warn-unresolved-symbols 2>&1| FileCheck %s
|
|
|
|
|
2017-03-31 03:13:47 +08:00
|
|
|
# CHECK: warning: undefined symbol: foo
|
|
|
|
# CHECK: error: undefined symbol: bar
|
|
|
|
# CHECK: error: undefined symbol: zed
|
2017-01-27 23:52:08 +08:00
|
|
|
|
2017-03-31 03:13:47 +08:00
|
|
|
.data
|
|
|
|
.quad foo
|
|
|
|
.hidden bar
|
|
|
|
.quad bar
|
|
|
|
.protected zed
|
|
|
|
.quad zed
|