]> Git Repo - qemu.git/blobdiff - tests/qapi-schema/union-invalid-base.json
Merge remote-tracking branch 'mst/tags/for_upstream' into staging
[qemu.git] / tests / qapi-schema / union-invalid-base.json
index 1fa4930010adee34393eb66b877ee5b53071e6a0..92be39df69ae7fce191f5113fb82f2be3fd80157 100644 (file)
@@ -1,10 +1,12 @@
-{ 'type': 'TestTypeA',
+# a union base type must be a struct
+{ 'struct': 'TestTypeA',
   'data': { 'string': 'str' } }
 
-{ 'type': 'TestTypeB',
+{ 'struct': 'TestTypeB',
   'data': { 'integer': 'int' } }
 
 { 'union': 'TestUnion',
-  'base': 'TestBaseWrong',
+  'base': 'int',
+  'discriminator': 'int',
   'data': { 'value1': 'TestTypeA',
             'value2': 'TestTypeB' } }
This page took 0.024885 seconds and 4 git commands to generate.