xref: /llvm-project/llvm/test/FileCheck/invalid-regex.txt (revision a3d357e504875f4f6c2b3c2674eb84a7b4101cb9)
1# This file contains invalid regular expressions in variable patterns. Make
2# sure a proper error message is presented
3//------------------------------------------------
4RUN: %ProtectFileCheckOutput \
5RUN: not FileCheck -check-prefix=CHECK-STAR %s < /dev/null 2>&1 | \
6RUN:   FileCheck -check-prefix=ERR-STAR %s
7
8CHECK-STAR: [[BOOM:*]]
9ERR-STAR: error: invalid regex: repetition-operator operand invalid
10
11//------------------------------------------------
12RUN: %ProtectFileCheckOutput \
13RUN: not FileCheck -check-prefix=CHECK-PLUS %s < /dev/null 2>&1 | \
14RUN:   FileCheck -check-prefix=ERR-PLUS %s
15
16CHECK-PLUS: [[BOOM:+]]
17ERR-PLUS: error: invalid regex: repetition-operator operand invalid
18
19//------------------------------------------------
20