diff options
Diffstat (limited to 'test/ELF/push-state.s')
-rw-r--r-- | test/ELF/push-state.s | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ELF/push-state.s b/test/ELF/push-state.s index 5a01cd2eeedd..f3d55c3488b3 100644 --- a/test/ELF/push-state.s +++ b/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: |