Add qemu 2.4.0
[kvmfornfv.git] / qemu / tests / qapi-schema / union-bad-branch.json
diff --git a/qemu/tests/qapi-schema/union-bad-branch.json b/qemu/tests/qapi-schema/union-bad-branch.json
new file mode 100644 (file)
index 0000000..913aa38
--- /dev/null
@@ -0,0 +1,8 @@
+# we reject normal unions where branches would collide in C
+{ 'struct': 'One',
+  'data': { 'string': 'str' } }
+{ 'struct': 'Two',
+  'data': { 'number': 'int' } }
+{ 'union': 'MyUnion',
+  'data': { 'one': 'One',
+            'ONE': 'Two' } }