summaryrefslogtreecommitdiff
path: root/tests/scanner/Regress-1.0-C-expected
diff options
context:
space:
mode:
authorPhilip Chimento <philip.chimento@gmail.com>2016-02-06 20:59:11 -0800
committerPhilip Chimento <philip.chimento@gmail.com>2016-02-07 20:48:17 -0800
commitb20ac732d096c1140d856d99f4cf64f6c708de50 (patch)
treeb9ffcd72dda0abd1a67d966a3fe9b1dd8e3247ec /tests/scanner/Regress-1.0-C-expected
parentc2f0c7bce052af6107dfe676b956b60550786c56 (diff)
downloadgobject-introspection-b20ac732d096c1140d856d99f4cf64f6c708de50.tar.gz
tests: Add regression test for out array of struct
This is a regression test for returning out arrays of structs, like gdk_keymap_get_entries_for_keyval() for example. https://bugzilla.gnome.org/show_bug.cgi?id=761658
Diffstat (limited to 'tests/scanner/Regress-1.0-C-expected')
-rw-r--r--tests/scanner/Regress-1.0-C-expected/Regress.test_array_struct_out.page47
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-C-expected/Regress.test_array_struct_out.page b/tests/scanner/Regress-1.0-C-expected/Regress.test_array_struct_out.page
new file mode 100644
index 00000000..84aee10f
--- /dev/null
+++ b/tests/scanner/Regress-1.0-C-expected/Regress.test_array_struct_out.page
@@ -0,0 +1,47 @@
+<?xml version="1.0"?>
+<page id="Regress.test_array_struct_out"
+ type="topic"
+ style="function"
+ xmlns="http://projectmallard.org/1.0/"
+ xmlns:api="http://projectmallard.org/experimental/api/"
+ xmlns:ui="http://projectmallard.org/1.0/ui/">
+ <info>
+ <link xref="index" group="function" type="guide"/>
+ <api:function>
+ <api:returns>
+ <api:type>void</api:type>
+ </api:returns>
+ <api:name>regress_test_array_struct_out</api:name>
+ <api:arg>
+ <api:type>RegressTestStructA**</api:type>
+ <api:name>arr</api:name>
+ </api:arg>
+ <api:arg>
+ <api:type>int*</api:type>
+ <api:name>len</api:name>
+ </api:arg>
+ </api:function>
+ </info>
+ <title>regress_test_array_struct_out</title>
+ <synopsis><code mime="text/x-csrc">
+void regress_test_array_struct_out (RegressTestStructA** arr,
+ int* len);
+ </code></synopsis>
+<p>This is similar to gdk_keymap_get_entries_for_keyval().</p>
+
+<terms>
+<item>
+<title><code>arr</code></title>
+
+</item>
+<item>
+<title><code>len</code></title>
+
+</item>
+<item>
+<title><code>Returns</code></title>
+
+</item>
+</terms>
+
+</page>