1 # Comment prefixes plus check directive suffixes are not comment directives
2 # and are treated as plain text.
6 RUN: echo 'COM-NEXT: CHECK: foo' > %t.chk
7 RUN: echo 'RUN-NOT: CHECK: bar' >> %t.chk
9 RUN: %ProtectFileCheckOutput FileCheck -dump-input=never -vv %t.chk < %t.in 2>&1 | \
10 RUN: FileCheck -check-prefix=CHECK1 %s
12 CHECK1: .chk:1:18: remark: CHECK: expected string found in input
13 CHECK1: .chk:2:17: remark: CHECK: expected string found in input
15 # But we can define them as comment prefixes.
17 RUN: %ProtectFileCheckOutput \
18 RUN: FileCheck -dump-input=never -vv -comment-prefixes=COM,RUN,RUN-NOT %t.chk < %t.in 2>&1 | \
19 RUN: FileCheck -check-prefix=CHECK2 %s
21 CHECK2: .chk:1:18: remark: CHECK: expected string found in input