diff options
Diffstat (limited to 'test/ELF/typed-undef.s')
-rw-r--r-- | test/ELF/typed-undef.s | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/ELF/typed-undef.s b/test/ELF/typed-undef.s new file mode 100644 index 000000000000..d00e07f82518 --- /dev/null +++ b/test/ELF/typed-undef.s @@ -0,0 +1,11 @@ +# REQUIRES: x86 + +# We used to crash on this, check that we don't + +# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o +# RUN: ld.lld %t.o -o %t -pie --unresolved-symbols=ignore-all + + .global _start +_start: + .quad foo - . + .type foo, @object |