2 ; RUN: FileCheck %s --input-file %s --check-prefix=CHECK1
10 ; next line must be blank
11 ; RUN: not FileCheck %s --input-file %s --check-prefix=CHECK2A 2>&1 | FileCheck %s --check-prefix=CHECK2B
15 CHECK2B: CHECK2A-EMPTY: is not on the line after the previous match
17 ; CHECK-EMPTY must have empty pattern
18 ; RUN: not FileCheck %s --input-file %s --check-prefix=CHECK3A 2>&1 | FileCheck %s --check-prefix=CHECK3B
20 CHECK3A-EMPTY: this is not empty
21 CHECK3B: found non-empty check string for empty check with prefix 'CHECK3A:'
23 ; CHECK-EMPTY cannot be the first check
24 ; RUN: not FileCheck %s --input-file %s --check-prefix=CHECK4A 2>&1 | FileCheck %s --check-prefix=CHECK4B
26 CHECK4B: found 'CHECK4A-EMPTY' without previous 'CHECK4A: line
28 ; CHECK-EMPTY-NOT and CHECK-NOT-EMPTY rejected
29 ; RUN: not FileCheck %s --input-file %s --check-prefixes=CHECK5A 2>&1 | FileCheck %s --check-prefix=CHECK5C
30 ; RUN: not FileCheck %s --input-file %s --check-prefixes=CHECK5B 2>&1 | FileCheck %s --check-prefix=CHECK5C
33 CHECK5C: unsupported -NOT combo on prefix 'CHECK5{{A|B}}'
35 ; whitespace does not count as empty
36 ; RUN: not FileCheck %s --input-file %s --check-prefix=CHECK6A --match-full-lines 2>&1 | FileCheck %s --check-prefix=CHECK6B
37 CHECK6A: the next line has spaces
39 CHECK6B: expected string not found in input
41 ; ***don't add any further blank lines after this point***
42 ; CHECK-EMPTY, like CHECK-NEXT, will report an error if the first matching
43 ; line is not the line immediately following the previous check.
44 the next line has spaces