aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/MIR/Generic/first-character-parse-error.mir
blob: 869392f3e4bb6fb2f44d22a34792bcda6d885a70 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
@# 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:

...