# RUN: yaml2obj %s -o %t
# RUN: obj2yaml %t > %t.stdout.yaml
# RUN: obj2yaml %t -o %t.file.yaml 2>&1 | count 0
# RUN: FileCheck --input-file=%t.stdout.yaml %s
# RUN: diff %t.stdout.yaml %t.file.yaml
---
Header:
Hash:
Version:
Major: 1
Minor: 0
FileSize: 3548
PartCount: 7
PartOffsets:
Parts:
- Name: SFI0
Size: 8
- Name: ISG1
Size: 8
- Name: OSG1
Size: 8
- Name: PSV0
Size: 120
- Name: STAT
Size: 1688
- Name: HASH
Size: 20
- Name: DXIL
Size: 28
Program:
MajorVersion: 6
MinorVersion: 5
ShaderKind: 5
Size: 8
DXILMajorVersion: 1
DXILMinorVersion: 5
DXILSize: 4
DXIL:
...
#CHECK: - Name: DXIL
#CHECK-NEXT: Size: 28
#CHECK-NEXT: Program:
#CHECK-NEXT: MajorVersion: 6
#CHECK-NEXT: MinorVersion: 5
#CHECK-NEXT: ShaderKind: 5
#CHECK-NEXT: Size: 8
#CHECK-NEXT: DXILMajorVersion: 1
#CHECK-NEXT: DXILMinorVersion: 5
#CHECK-NEXT: DXILSize: 4
#CHECK-NEXT: DXIL: [ 0x42, 0x43, 0xC0, 0xDE