Add a test.

This would have found the error in r309252.

llvm-svn: 309329
This commit is contained in:
Rafael Espindola 2017-07-27 22:08:11 +00:00
parent b5eca2f9a2
commit 06ad7ed70c

View File

@ -0,0 +1,9 @@
# REQUIRES: x86
# Test that we don't fail with foo being undefined.
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
# RUN: ld.lld --export-dynamic %t.o -o %t
.weak foo
.quad foo