summaryrefslogtreecommitdiff
path: root/llvm/test/ObjectYAML/DXContainer/RootSignature-Invalid-RootParameterOffset.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/ObjectYAML/DXContainer/RootSignature-Invalid-RootParameterOffset.yaml')
-rw-r--r--llvm/test/ObjectYAML/DXContainer/RootSignature-Invalid-RootParameterOffset.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/llvm/test/ObjectYAML/DXContainer/RootSignature-Invalid-RootParameterOffset.yaml b/llvm/test/ObjectYAML/DXContainer/RootSignature-Invalid-RootParameterOffset.yaml
new file mode 100644
index 000000000000..22606761fe5b
--- /dev/null
+++ b/llvm/test/ObjectYAML/DXContainer/RootSignature-Invalid-RootParameterOffset.yaml
@@ -0,0 +1,23 @@
+# RUN: not yaml2obj %s 2>&1 | FileCheck %s
+
+# CHECK: error: Specified RootParametersOffset does not match required value: 24.
+
+--- !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
+ PartOffsets: [ 60 ]
+Parts:
+ - Name: RTS0
+ Size: 24
+ RootSignature:
+ Version: 2
+ NumRootParameters: 0
+ RootParametersOffset: 36
+ NumStaticSamplers: 0
+ StaticSamplersOffset: 24
+ Parameters: []