summaryrefslogtreecommitdiff
path: root/tests/union.gir
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-08-09 12:37:06 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-08-09 12:37:06 +0000
commitb9c41e1af4e481c370806996cfa1e7ca61226a60 (patch)
tree3c77a11618a4ff90bf2fe8716d52ec4d729d2b71 /tests/union.gir
parent5794ea662e65aaa44103083cf10d1e6730ef7e53 (diff)
downloadgobject-introspection-b9c41e1af4e481c370806996cfa1e7ca61226a60.tar.gz
Rename *.test to *.gir
2008-08-09 Johan Dahlin <johan@gnome.org> * tests/Makefile.am: * tests/array.test: * tests/boxed.test: * tests/constant.test: * tests/enum.test: * tests/errors.test: * tests/function.test: * tests/gobject.test: * tests/interface.test: * tests/object.test: * tests/struct.test: * tests/types.test: * tests/union.test: * tests/xref1.test: * tests/xref2.test: Rename *.test to *.gir svn path=/trunk/; revision=335
Diffstat (limited to 'tests/union.gir')
-rw-r--r--tests/union.gir17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/union.gir b/tests/union.gir
new file mode 100644
index 00000000..9c4ae61a
--- /dev/null
+++ b/tests/union.gir
@@ -0,0 +1,17 @@
+<?xml version="1.0"?>
+<repository version="1.0"
+ xmlns="http://www.gtk.org/introspection/core/1.0"
+ xmlns:c="http://www.gtk.org/introspection/c/1.0"
+ xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
+ <namespace name="Foo">
+ <union name="union1" type-name="UnionType1" get-type="union1_get_type">
+ <discriminator offset="-4" type="gint" />
+ <field name="field1" readable="1" writable="1" offset="0" type="guint32" branch="0" />
+ <field name="field1" readable="1" writable="1" offset="0" type="gdouble" branch="1" />
+ </union>
+ <union name="union2" type-name="UnionType1" get-type="union1_get_type">
+ <field name="field1" readable="1" writable="1" offset="0" type="guint32" />
+ <field name="field1" readable="1" writable="1" offset="0" type="gdouble" />
+ </union>
+ </namespace>
+</repository>