summaryrefslogtreecommitdiff
path: root/llvm/test/tools/obj2yaml/DXContainer/PartTooSmall.yaml
blob: 9f54546b53f596d2241965d55e685bb6cd05beaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# RUN: yaml2obj %s | not obj2yaml 2>&1 | FileCheck %s 

# In this test the hash part is too small to contain the hash data.

# CHECK: Error reading file: <stdin>: Reading structure out of file bounds
--- !dxcontainer
Header:
  Hash:            [ 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 
                     0x0, 0x0, 0x0, 0x0, 0x0, 0x0 ]
  Version:
    Major:           1
    Minor:           0
  PartCount:       1
Parts:
  - Name:            HASH
    Size:            0
...