From e4ba9044ad226128313b90f439827e89aa7e4ca8 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Mon, 9 Apr 2018 23:30:21 +0000 Subject: [PATCH] Add a test for nested --start-group. llvm-svn: 329642 --- lld/test/ELF/warn-backrefs.s | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lld/test/ELF/warn-backrefs.s b/lld/test/ELF/warn-backrefs.s index b1eb5b5..9eaaeb4 100644 --- a/lld/test/ELF/warn-backrefs.s +++ b/lld/test/ELF/warn-backrefs.s @@ -24,8 +24,11 @@ # CHECK: backward reference detected: foo in {{.*}}1.o refers to {{.*}}2.a -# RUN: not ld.lld --fatal-warnings --end-group 2>&1 | FileCheck -check-prefix=ENDGROUP %s -# ENDGROUP: stray --end-group +# RUN: not ld.lld --fatal-warnings --start-group --start-group 2>&1 | FileCheck -check-prefix=START %s +# START: nested --start-group + +# RUN: not ld.lld --fatal-warnings --end-group 2>&1 | FileCheck -check-prefix=END %s +# END: stray --end-group .globl _start, foo _start: -- 2.7.4