Files
clang-p2996/llvm/test/CodeGen/MIR/Generic/first-character-parse-error.mir
akirchhoff-modular 4480e650b3 [YAMLParser] Improve plain scalar spec compliance (#68946)
The `YAMLParser.h` header file claims support for YAML 1.2 with a few
deviations, but our plain scalar parsing failed to parse some valid YAML
according to the spec. This change puts us more in compliance with the
YAML spec, now letting us parse plain scalars containing additional
special characters in cases where they are not ambiguous.
2023-10-17 11:28:14 -06:00

15 lines
342 B
YAML

@# RUN: not llc -run-pass=none %s -o - 2>&1 | FileCheck %s
# The @ before the run comment is syntactically invalid. This used to
# crash in the SourceMgr diagnostic printer because it was called
# before the LLVMContext was initialized.
# CHECK: error: YAML:1:1: Unrecognized character while tokenizing.
---
name: foo
body: |
bb.0:
...