1// RUN: FileCheck -check-prefix=ANOTHER-PREFIX -input-file %s %s
2//
3// RUN: %ProtectFileCheckOutput \
4// RUN: not FileCheck -check-prefix=PREFIX -input-file %s %s 2>&1 \
5// RUN: | FileCheck -check-prefix=CHECK-NONEXISTENT-PREFIX %s
6
7foobar
8; ANOTHER-PREFIX: foobar
9
10; We use regex to match the colon so that FileCheck won't think it is a check
11; prefix.
12; CHECK-NONEXISTENT-PREFIX: error: no check strings found with prefix 'PREFIX{{:}}'
13