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.
15 lines
342 B
YAML
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:
|
|
|
|
...
|