test for nested comments
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 12 Sep 2008 04:37:50 +0000 (04:37 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 12 Sep 2008 04:37:50 +0000 (04:37 +0000)
[r21878]

parsetest/should_warn/nested_comment.c [new file with mode: 0644]

diff --git a/parsetest/should_warn/nested_comment.c b/parsetest/should_warn/nested_comment.c
new file mode 100644 (file)
index 0000000..9895c96
--- /dev/null
@@ -0,0 +1,9 @@
+/*$ -Wcomments $*/
+
+/* /* nested */
+
+// connected lines are NOT allowed \
+
+int main(int argc, char *argv[]) {
+       return 0;
+}