diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/scanner/Regress-1.0-expected.gir | 8 | ||||
-rw-r--r-- | tests/scanner/regress.c | 22 |
2 files changed, 30 insertions, 0 deletions
diff --git a/tests/scanner/Regress-1.0-expected.gir b/tests/scanner/Regress-1.0-expected.gir index 1c9c300f..9ed048a5 100644 --- a/tests/scanner/Regress-1.0-expected.gir +++ b/tests/scanner/Regress-1.0-expected.gir @@ -2046,6 +2046,14 @@ exposed to language bindings.</doc> c:type="REGRESS_NEGATIVE_INT_CONSTANT"> <type name="gint" c:type="gint"/> </constant> + <section name="SECTION:one" title="Test One!"> + <short-description xml:whitespace="preserve">One test section</short-description> + <see-also xml:whitespace="preserve">two</see-also> + </section> + <section name="SECTION:two" title="Test Another!"> + <short-description xml:whitespace="preserve">Another test section</short-description> + <see-also xml:whitespace="preserve">one</see-also> + </section> <constant name="STRING_CONSTANT" value="Some String" c:type="REGRESS_STRING_CONSTANT"> diff --git a/tests/scanner/regress.c b/tests/scanner/regress.c index 1bad36e3..00e21e3b 100644 --- a/tests/scanner/regress.c +++ b/tests/scanner/regress.c @@ -6,6 +6,28 @@ #include "regress.h" +/** + * SECTION:one + * @Short_description: One test section + * @Title: Test One! + * @See_also: two + * + * Testing some docs. + * + * Do not sound the alarm. + */ + +/** + * SECTION:two + * @Short_description: Another test section + * @Title: Test Another! + * @See_also: one + * + * Testing some more docs. + * + * Oh hey, this is still a test! + */ + static gboolean abort_on_error = TRUE; #define ASSERT_VALUE(condition) \ |