49 lines · plain
1## Check that a full line is matched case insensitively.2# RUN: FileCheck --ignore-case --match-full-lines --check-prefix=FULL --input-file=%s %s3 4## Check that a regular expression matches case insensitively.5# RUN: FileCheck --ignore-case --check-prefix=REGEX --input-file=%s %s6 7## Check that a pattern from command line matches case insensitively.8# RUN: FileCheck --ignore-case --check-prefix=PAT --DPATTERN="THIS is the" --input-file=%s %s9 10## Check that COUNT and NEXT work case insensitively.11# RUN: FileCheck --ignore-case --check-prefix=CNT --input-file=%s %s12 13## Check that match on same line works case insensitively.14# RUN: FileCheck --ignore-case --check-prefix=LINE --input-file=%s %s15 16## Check that option --implicit-not works case insensitively.17# RUN: sed '/^#/d' %s | FileCheck --implicit-check-not=sTrInG %s18# RUN: sed '/^#/d' %s \19# RUN: | %ProtectFileCheckOutput \20# RUN: not FileCheck --ignore-case --implicit-check-not=sTrInG %s 2>&1 \21# RUN: | FileCheck --check-prefix=ERROR %s22 23this is the STRING to be matched24 25# FULL: tHis iS The String TO be matched26# REGEX: s{{TRing}}27# PAT: [[PATTERN]] string28 29Loop 130lOop 231loOp 332looP 433loop 534LOOP 635BREAK36 37# CNT-COUNT-6: LOop {{[0-9]}}38# CNT-NOT: loop39# CNT-NEXT: break40 41One Line To Match42 43# LINE: {{o}}ne line44# LINE-SAME: {{t}}o match45 46# ERROR: command line:1:{{[0-9]+}}: error: IMPLICIT-CHECK-NOT: excluded string found in input47# ERROR-NEXT: -implicit-check-not='sTrInG'48# ERROR: note: found here49