Files
clang-p2996/llvm/test/CodeGen/MIR/Generic/first-character-parse-error.mir
Matt Arsenault 2d3d2e78d0 MIR: Fix parser crash on syntax error on first character
This was calling the diagnostic printer before the context member was
initialized.
2021-02-18 18:59:08 -05: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:
...