20 lines · plain
1# This file contains invalid regular expressions in variable patterns. Make2# sure a proper error message is presented3//------------------------------------------------4RUN: %ProtectFileCheckOutput \5RUN: not FileCheck -check-prefix=CHECK-STAR %s < /dev/null 2>&1 | \6RUN: FileCheck -check-prefix=ERR-STAR %s7 8CHECK-STAR: [[BOOM:*]]9ERR-STAR: error: invalid regex: repetition-operator operand invalid10 11//------------------------------------------------12RUN: %ProtectFileCheckOutput \13RUN: not FileCheck -check-prefix=CHECK-PLUS %s < /dev/null 2>&1 | \14RUN: FileCheck -check-prefix=ERR-PLUS %s15 16CHECK-PLUS: [[BOOM:+]]17ERR-PLUS: error: invalid regex: repetition-operator operand invalid18 19//------------------------------------------------20