xref: /llvm-project/llvm/test/tools/obj2yaml/DXContainer/PartTooSmall.yaml (revision 621ffbcbe4abe92fc085966f52fe95e2b8e19b8c)
1# RUN: yaml2obj %s | not obj2yaml 2>&1 | FileCheck %s
2
3# In this test the hash part is too small to contain the hash data.
4
5# CHECK: Error reading file: <stdin>: Reading structure out of file bounds
6--- !dxcontainer
7Header:
8  Hash:            [ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
9                     0x0, 0x0, 0x0, 0x0, 0x0, 0x0 ]
10  Version:
11    Major:           1
12    Minor:           0
13  PartCount:       1
14Parts:
15  - Name:            HASH
16    Size:            0
17...
18