brintos

brintos / llvm-project-archived public Read only

0
0
Text · 838 B · 85b05fb Raw
23 lines · plain
1# Comment prefixes plus check directive suffixes are not comment directives2# and are treated as plain text.3 4RUN: echo foo                    >  %t.in5RUN: echo bar                    >> %t.in6RUN: echo 'COM-NEXT: CHECK: foo' >  %t.chk7RUN: echo 'RUN-NOT: CHECK: bar'  >> %t.chk8 9RUN: %ProtectFileCheckOutput FileCheck -dump-input=never -vv %t.chk < %t.in 2>&1 | \10RUN:   FileCheck -check-prefix=CHECK1 %s11 12CHECK1: .chk:1:18: remark: CHECK: expected string found in input13CHECK1: .chk:2:17: remark: CHECK: expected string found in input14 15# But we can define them as comment prefixes.16 17RUN: %ProtectFileCheckOutput \18RUN: FileCheck -dump-input=never -vv -comment-prefixes=COM,RUN,RUN-NOT %t.chk < %t.in 2>&1 | \19RUN:   FileCheck -check-prefix=CHECK2 %s20 21CHECK2: .chk:1:18: remark: CHECK: expected string found in input22CHECK2-NOT: .chk:223