Use CHECK-NEXT in a test.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 26 Apr 2017 15:05:10 +0000 (15:05 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 26 Apr 2017 15:05:10 +0000 (15:05 +0000)
This will simplify a future patch.

llvm-svn: 301415

lld/test/ELF/linkerscript/sections.s

index 1a2323c..b7d396f 100644 (file)
 # RUN:   FileCheck -check-prefix=SEC-MULTI %s
 
 #           Idx Name          Size
-# SEC-MULTI: 1 .text         0000000e {{[0-9a-f]*}} TEXT DATA
-# SEC-MULTI: 2 .data         00000023 {{[0-9a-f]*}} DATA
-# SEC-MULTI: 3 .bss          00000002 {{[0-9a-f]*}} BSS
-# SEC-MULTI: 4 .comment      00000008 {{[0-9a-f]*}}
-# SEC-MULTI: 5 .symtab       00000030 {{[0-9a-f]*}}
-# SEC-MULTI: 6 .shstrtab     00000035 {{[0-9a-f]*}}
-# SEC-MULTI: 7 .strtab       00000008 {{[0-9a-f]*}}
+# SEC-MULTI:      1 .text         0000000e {{[0-9a-f]*}} TEXT DATA
+# SEC-MULTI-NEXT:   .data         00000023 {{[0-9a-f]*}} DATA
+# SEC-MULTI-NEXT:   .bss          00000002 {{[0-9a-f]*}} BSS
+# SEC-MULTI-NEXT:   .comment      00000008 {{[0-9a-f]*}}
+# SEC-MULTI-NEXT:   .symtab       00000030 {{[0-9a-f]*}}
+# SEC-MULTI-NEXT:   .shstrtab     00000035 {{[0-9a-f]*}}
+# SEC-MULTI-NEXT:   .strtab       00000008 {{[0-9a-f]*}}
 
 # Input section pattern contains additional semicolon.
 # Case found in linux kernel script. Check we are able to parse it.