Skip to content

Commit 73ba7a7

Browse files
authored
Add tests
1 parent d61ab20 commit 73ba7a7

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Regression test for #97440: Multiline (more than 2 lines) inner attribute triggers ICE during doctest
2+
// compile-flags:--test
3+
// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR"
4+
// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
5+
// check-pass
6+
7+
//! ```rust
8+
//! #![deny(
9+
//! unused_parens,
10+
//! )]
11+
//! ```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
running 1 test
3+
test $DIR/doc-comment-multi-line-attr.rs - (line 7) ... ok
4+
5+
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME
6+

0 commit comments

Comments
 (0)