about summary refs log tree commit diff
path: root/tests/ui/parser/nested-block-comments.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/nested-block-comments.rs')
-rw-r--r--tests/ui/parser/nested-block-comments.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/parser/nested-block-comments.rs b/tests/ui/parser/nested-block-comments.rs
new file mode 100644
index 00000000000..008df27e0e2
--- /dev/null
+++ b/tests/ui/parser/nested-block-comments.rs
@@ -0,0 +1,11 @@
+//@ run-pass
+
+/* This test checks that nested comments are supported
+
+   /*
+     This should not panic
+   */
+*/
+
+pub fn main() {
+}