Add qemu 2.4.0
[kvmfornfv.git] / qemu / tests / qapi-schema / union-invalid-base.json
diff --git a/qemu/tests/qapi-schema/union-invalid-base.json b/qemu/tests/qapi-schema/union-invalid-base.json
new file mode 100644 (file)
index 0000000..92be39d
--- /dev/null
@@ -0,0 +1,12 @@
+# a union base type must be a struct
+{ 'struct': 'TestTypeA',
+  'data': { 'string': 'str' } }
+
+{ 'struct': 'TestTypeB',
+  'data': { 'integer': 'int' } }
+
+{ 'union': 'TestUnion',
+  'base': 'int',
+  'discriminator': 'int',
+  'data': { 'value1': 'TestTypeA',
+            'value2': 'TestTypeB' } }