diff options
Diffstat (limited to 'test/ELF/linkerscript/align-section.test')
| -rw-r--r-- | test/ELF/linkerscript/align-section.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ELF/linkerscript/align-section.test b/test/ELF/linkerscript/align-section.test new file mode 100644 index 0000000000000..7a28fef2076ed --- /dev/null +++ b/test/ELF/linkerscript/align-section.test @@ -0,0 +1,7 @@ +# REQUIRES: x86 +# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux /dev/null -o %t.o +# RUN: ld.lld -o %t --script %s %t.o -shared + +# lld shouldn't crash. + +SECTIONS { .foo : ALIGN(2M) {} } |
