xref: /llvm-project/llvm/test/CodeGen/MIR/Generic/first-character-parse-error.mir (revision 4480e650b3cf7cc63cfd3767cd6b120f8bfad2ac)
1@# RUN: not llc -run-pass=none %s -o - 2>&1 | FileCheck %s
2
3# The @ before the run comment is syntactically invalid. This used to
4# crash in the SourceMgr diagnostic printer because it was called
5# before the LLVMContext was initialized.
6
7# CHECK: error: YAML:1:1: Unrecognized character while tokenizing.
8
9---
10name: foo
11body: |
12  bb.0:
13
14...
15