summaryrefslogtreecommitdiff
path: root/tests/scanner/Regress-1.0-Gjs-expected/Regress.AnonymousUnionAndStruct.page
diff options
context:
space:
mode:
authorScott D Phillips <scott.d.phillips@intel.com>2016-05-04 17:22:05 -0700
committerColin Walters <walters@verbum.org>2016-05-08 17:43:31 -0400
commit3474d20fe8716608b1156701fdb043add10ebb7d (patch)
tree2c72adb9d9229b6bf3c7c19b7dea479ec55d13c7 /tests/scanner/Regress-1.0-Gjs-expected/Regress.AnonymousUnionAndStruct.page
parent1dabcc4c17f2eb98ed38eaf4c022d43f29965a61 (diff)
downloadgobject-introspection-3474d20fe8716608b1156701fdb043add10ebb7d.tar.gz
tests: add regression test for anonymous struct
C11 which added support for anonymous unions (already supported) also adds support for anonymous structs. https://bugzilla.gnome.org/show_bug.cgi?id=766011
Diffstat (limited to 'tests/scanner/Regress-1.0-Gjs-expected/Regress.AnonymousUnionAndStruct.page')
-rw-r--r--tests/scanner/Regress-1.0-Gjs-expected/Regress.AnonymousUnionAndStruct.page42
1 files changed, 42 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-Gjs-expected/Regress.AnonymousUnionAndStruct.page b/tests/scanner/Regress-1.0-Gjs-expected/Regress.AnonymousUnionAndStruct.page
new file mode 100644
index 00000000..915dd534
--- /dev/null
+++ b/tests/scanner/Regress-1.0-Gjs-expected/Regress.AnonymousUnionAndStruct.page
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<page id="Regress.AnonymousUnionAndStruct"
+ type="guide"
+ style="class"
+ 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="class" type="guide"/>
+ </info>
+ <title>Regress.AnonymousUnionAndStruct</title>
+ <synopsis><code>
+const Regress = imports.gi.Regress;
+
+let anonymousUnionAndStruct = new Regress.AnonymousUnionAndStruct({
+ <link xref='Regress.AnonymousUnionAndStruct-x'>x</link>: value
+});
+ </code></synopsis>
+
+
+ <links type="topic" ui:expanded="true"
+ api:type="function" api:mime="text/x-gjs"
+ groups="constructor" style="linklist">
+ <title>Constructors</title>
+ </links>
+ <links type="topic" ui:expanded="true"
+ api:type="function" api:mime="text/x-gjs"
+ groups="method" style="linklist">
+ <title>Methods</title>
+ </links>
+ <links type="topic" ui:expanded="true"
+ api:type="function" api:mime="text/x-gjs"
+ groups="function" style="linklist">
+ <title>Static Functions</title>
+ </links>
+ <links type="topic" ui:expanded="true" groups="field" style="linklist">
+ <title>Fields</title>
+ </links>
+ <links type="topic" ui:expanded="true" groups="#first #default #last" style="linklist">
+ <title>Other</title>
+ </links>
+</page>