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