projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77c56ff
)
[LLD][ELF] - Add a test for "unbalanced --push-state/--pop-state" error.
author
George Rimar
<grimar@accesssoftek.com>
Mon, 26 Nov 2018 12:58:51 +0000
(12:58 +0000)
committer
George Rimar
<grimar@accesssoftek.com>
Mon, 26 Nov 2018 12:58:51 +0000
(12:58 +0000)
We had no such test.
llvm-svn: 347552
lld/test/ELF/push-state.s
patch
|
blob
|
history
diff --git
a/lld/test/ELF/push-state.s
b/lld/test/ELF/push-state.s
index
5a01cd2
..
f3d55c3
100644
(file)
--- 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: