[lld] r347552 - [LLD][ELF] - Add a test for "unbalanced --push-state/--pop-state" error.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 26 04:58:51 PST 2018
Author: grimar
Date: Mon Nov 26 04:58:51 2018
New Revision: 347552
URL: http://llvm.org/viewvc/llvm-project?rev=347552&view=rev
Log:
[LLD][ELF] - Add a test for "unbalanced --push-state/--pop-state" error.
We had no such test.
Modified:
lld/trunk/test/ELF/push-state.s
Modified: lld/trunk/test/ELF/push-state.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/push-state.s?rev=347552&r1=347551&r2=347552&view=diff
==============================================================================
--- lld/trunk/test/ELF/push-state.s (original)
+++ lld/trunk/test/ELF/push-state.s Mon Nov 26 04:58:51 2018
@@ -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:
More information about the llvm-commits
mailing list