Files
clang-p2996/mlir/test/mlir-pdll/Parser/string-eof.pdll
River Riddle ebb1e900d3 [mlir:PDLL] Fix error handling of eof within a string literal
We currently aren't handling this properly, and in the case
of a string block just crash. This commit adds proper error handling
and detection for eof.

Differential Revision: https://reviews.llvm.org/D124585
2022-04-28 12:58:00 -07:00

9 lines
202 B
Plaintext

// RUN: not mlir-pdll %s -I %S -split-input-file 2>&1 | FileCheck %s
// CHECK: expected '}]' in string literal
Constraint Cst() [{
// -----
// CHECK: expected '"' in string literal
Constraint Cst() "