Add tests

This commit is contained in:
hafeoz 2022-05-26 22:55:29 +01:00 committed by GitHub
parent d61ab20ff0
commit 73ba7a756d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,11 @@
// Regression test for #97440: Multiline (more than 2 lines) inner attribute triggers ICE during doctest
// compile-flags:--test
// normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR"
// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
// check-pass
//! ```rust
//! #![deny(
//! unused_parens,
//! )]
//! ```

View file

@ -0,0 +1,6 @@
running 1 test
test $DIR/doc-comment-multi-line-attr.rs - (line 7) ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in $TIME