xref: /aosp_15_r20/external/llvm/test/FileCheck/check-empty.txt (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker// RUN: not FileCheck -check-prefix=FOO %s </dev/null 2>&1 | FileCheck -check-prefix=EMPTY-ERR %s
2*9880d681SAndroid Build Coastguard Worker// RUN: not FileCheck -check-prefix=NOFOO %s </dev/null 2>&1 | FileCheck -check-prefix=EMPTY-ERR %s
3*9880d681SAndroid Build Coastguard Worker// RUN: not FileCheck -check-prefix=FOO -allow-empty %s </dev/null 2>&1 | FileCheck -check-prefix=NO-EMPTY-ERR -check-prefix=NOT-FOUND %s
4*9880d681SAndroid Build Coastguard Worker// RUN: FileCheck -check-prefix=NOFOO -allow-empty %s </dev/null 2>&1 | FileCheck -allow-empty -check-prefix=NO-EMPTY-ERR %s
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker; FOO: foo
7*9880d681SAndroid Build Coastguard Worker; NOFOO-NOT: foo
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Worker; EMPTY-ERR: FileCheck error: '-' is empty.
10*9880d681SAndroid Build Coastguard Worker; EMPTY-ERR-NEXT: FileCheck command line: {{.*}}FileCheck{{.*}}-check-prefix={{.*}}FOO {{.*}}check-empty.txt
11*9880d681SAndroid Build Coastguard Worker; NO-EMPTY-ERR-NOT: FileCheck error: '-' is empty.
12*9880d681SAndroid Build Coastguard Worker; NOT-FOUND: error: expected string not found in input
13