Add a test for nested --start-group.
authorRui Ueyama <ruiu@google.com>
Mon, 9 Apr 2018 23:30:21 +0000 (23:30 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 9 Apr 2018 23:30:21 +0000 (23:30 +0000)
llvm-svn: 329642

lld/test/ELF/warn-backrefs.s

index b1eb5b5..9eaaeb4 100644 (file)
 
 # 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: