diff options
author | George Rimar <grimar@accesssoftek.com> | 2018-11-26 12:58:51 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2018-11-26 12:58:51 +0000 |
commit | e9ab0d06501c38d8a79f5d021a0d487eb8ea0e2d (patch) | |
tree | 2a5832adf4ec7d59e292623664914fdb7eb08f88 | |
parent | 77c56fffadacefcced1155a7490738ab1253b728 (diff) | |
download | bcm5719-llvm-e9ab0d06501c38d8a79f5d021a0d487eb8ea0e2d.tar.gz bcm5719-llvm-e9ab0d06501c38d8a79f5d021a0d487eb8ea0e2d.zip |
[LLD][ELF] - Add a test for "unbalanced --push-state/--pop-state" error.
We had no such test.
llvm-svn: 347552
-rw-r--r-- | lld/test/ELF/push-state.s | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lld/test/ELF/push-state.s b/lld/test/ELF/push-state.s index 5a01cd2eeed..f3d55c3488b 100644 --- a/lld/test/ELF/push-state.s +++ b/lld/test/ELF/push-state.s @@ -32,5 +32,8 @@ // RUN: ld.lld -o %t.exe -L%t.dir -push-state -static -pop-state %t1.o -lfoo // RUN: not ld.lld -o %t.exe -L%t.dir -push-state -static %t1.o -lfoo +// RUN: not ld.lld -o %t.exe -pop-state %t.a %t1.o -M 2>&1 | FileCheck -check-prefix=ERR %s +// ERR: error: unbalanced --push-state/--pop-state + .globl _start _start: |