gir/async-result-pos.test \
gir/async-sync-out.test \
gir/class.test \
+ gir/constant.test \
gir/delegate-alias-without-target.test \
gir/delegate-array-length-type.test \
gir/delegate-closure-destroy-index-conflict.test \
gir/parameter-nullable-out-simple-type.test \
gir/property-non-readable.test \
gir/symbol-type-csuffix.test \
+ gir/union.test \
annotations/deprecated.vala \
annotations/description.vala \
annotations/noaccessormethod.test \
--- /dev/null
+GIR
+
+Input:
+
+<constant name="FOO_CONSTANT"
+ value="foo-constant-string-value"
+ c:type="TEST_FOO_CONSTANT">
+ <type name="utf8" c:type="gchar*"/>
+</constant>
+<constant name="FOO_CONSTANT_ARRAY"
+ c:type="TEST_FOO_CONSTANT_ARRAY">
+ <array c:type="const gchar**">
+ <type name="utf8" c:type="const gchar*"/>
+ </array>
+</constant>
+
+Output:
+
+[CCode (cheader_filename = "test.h", cname = "TEST_FOO_CONSTANT")]
+public const string FOO_CONSTANT;
+[CCode (array_length = false, array_null_terminated = true, cheader_filename = "test.h", cname = "TEST_FOO_CONSTANT_ARRAY")]
+public const string[] FOO_CONSTANT_ARRAY;
--- /dev/null
+GIR
+
+Input:
+
+<union name="Foo" c:type="TestFoo">
+ <field name="bar" writable="1">
+ <type name="guint" c:type="guint"/>
+ </field>
+ <field name="manam" writable="1">
+ <type name="gint" c:type="gint"/>
+ </field>
+</union>
+
+Output:
+
+[CCode (cheader_filename = "test.h")]
+public struct Foo {
+ public uint bar;
+ public int manam;
+}