llvm-project/llvm/test/FileCheck/invalid-regex.txt

20 lines
742 B
Plaintext

# This file contains invalid regular expressions in variable patterns. Make
# sure a proper error message is presented
//------------------------------------------------
RUN: %ProtectFileCheckOutput \
RUN: not FileCheck -check-prefix=CHECK-STAR %s < /dev/null 2>&1 | \
RUN: FileCheck -check-prefix=ERR-STAR %s
CHECK-STAR: [[BOOM:*]]
ERR-STAR: error: invalid regex: repetition-operator operand invalid
//------------------------------------------------
RUN: %ProtectFileCheckOutput \
RUN: not FileCheck -check-prefix=CHECK-PLUS %s < /dev/null 2>&1 | \
RUN: FileCheck -check-prefix=ERR-PLUS %s
CHECK-PLUS: [[BOOM:+]]
ERR-PLUS: error: invalid regex: repetition-operator operand invalid
//------------------------------------------------