diff options
| author | Markus Armbruster | 2014-03-01 08:40:30 +0100 |
|---|---|---|
| committer | Luiz Capitulino | 2014-03-03 17:16:45 +0100 |
| commit | 2c38b600109edcad399ca687024b7a7febd80076 (patch) | |
| tree | 809a61d83b653edc982559037d68c53447390280 /tests/qapi-schema/qapi-schema-test.json | |
| parent | tests/qapi-schema: Cover simple argument types (diff) | |
| download | qemu-2c38b600109edcad399ca687024b7a7febd80076.tar.gz qemu-2c38b600109edcad399ca687024b7a7febd80076.tar.xz qemu-2c38b600109edcad399ca687024b7a7febd80076.zip | |
tests/qapi-schema: Cover anonymous union types
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'tests/qapi-schema/qapi-schema-test.json')
| -rw-r--r-- | tests/qapi-schema/qapi-schema-test.json | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/qapi-schema/qapi-schema-test.json b/tests/qapi-schema/qapi-schema-test.json index 3f62821b60..8405021a18 100644 --- a/tests/qapi-schema/qapi-schema-test.json +++ b/tests/qapi-schema/qapi-schema-test.json @@ -32,6 +32,10 @@ { 'union': 'UserDefUnion', 'data': { 'a' : 'UserDefA', 'b' : 'UserDefB' } } +{ 'union': 'UserDefAnonUnion', + 'discriminator': {}, + 'data': { 'uda': 'UserDefA', 's': 'str', 'i': 'int' } } + # for testing native lists { 'union': 'UserDefNativeListUnion', 'data': { 'integer': ['int'], |
