summaryrefslogtreecommitdiff
path: root/tests/warn
diff options
context:
space:
mode:
authorDieter Verfaillie <dieterv@optionexplicit.be>2012-12-01 16:02:01 +0100
committerDieter Verfaillie <dieterv@optionexplicit.be>2012-12-02 12:28:34 +0100
commitceb84d1e084b8048b2abb81d1e1ebe600f00d00e (patch)
tree2541644084d319d3afed0f66d786c7b62ca550c3 /tests/warn
parentf4bb1c1b18085ddbd22596de7f72993a2fd76c2d (diff)
downloadgobject-introspection-ceb84d1e084b8048b2abb81d1e1ebe600f00d00e.tar.gz
scanner: Parse comments with */ not on a new line, but emit a warning
We don't know how many apps do this, but at least ibus had one. https://bugzilla.gnome.org/show_bug.cgi?id=689354
Diffstat (limited to 'tests/warn')
-rw-r--r--tests/warn/annotationparser.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/warn/annotationparser.h b/tests/warn/annotationparser.h
index ff9030e4..dba69711 100644
--- a/tests/warn/annotationparser.h
+++ b/tests/warn/annotationparser.h
@@ -203,3 +203,14 @@ void test_symbol_twice_documented();
// EXPECT:195: Warning: Test: ignoring unrecognized GTK-Doc comment block, identifier not found:
//+
//+^
+
+/**
+ * regress_test_invalid_comment_end:
+ * @foo: a param
+ *
+ * invalid comment with a line without
+ * https://bugzilla.gnome.org/show_bug.cgi?id=689354 */
+
+// EXPECT:212: Warning: Test: Comments should end with */ on a new line:
+//+ * https://bugzilla.gnome.org/show_bug.cgi?id=689354 */
+//+ ^