[llvm] [SystemZ][z/OS] yaml2obj for header and end records (PR #73859)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 13 00:19:41 PST 2023
================
@@ -0,0 +1,6 @@
+# RUN: not yaml2obj %s FileCheck --ignore-case %s --check-prefix=ERR
+
+## X: [] is an extra field is to workaround document of unknown type error
+# ERR: yaml2obj: error: missing required key 'FileHeader'
+--- !GOFF
+X: []
----------------
jh7370 wrote:
There's no need to use `--check-prefix` as there is only one prefix in this file. Just use `CHECK`.
Also, I'd reorder the test a little as follows, as I think this aids readability:
```
# RUN: ...
# CHECK: ...
--- !GOFF
## X: [] is an extra field ...
X: []
```
https://github.com/llvm/llvm-project/pull/73859
More information about the llvm-commits
mailing list