summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/doc-comment-multi-line-attr.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-ui/doc-comment-multi-line-attr.rs')
-rw-r--r--tests/rustdoc-ui/doc-comment-multi-line-attr.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/doc-comment-multi-line-attr.rs b/tests/rustdoc-ui/doc-comment-multi-line-attr.rs
new file mode 100644
index 000000000..db674e229
--- /dev/null
+++ b/tests/rustdoc-ui/doc-comment-multi-line-attr.rs
@@ -0,0 +1,11 @@
+// Regression test for #97440: Multiline inner attribute triggers ICE during doctest
+// compile-flags:--test
+// normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR"
+// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
+// check-pass
+
+//! ```rust
+//! #![deny(
+//! unused_parens,
+//! )]
+//! ```