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
9 lines
202 B
Plaintext
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() " |