diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/proc-macro/issue-50061.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/test/ui/proc-macro/issue-50061.rs b/src/test/ui/proc-macro/issue-50061.rs new file mode 100644 index 000000000..01c6b80b4 --- /dev/null +++ b/src/test/ui/proc-macro/issue-50061.rs @@ -0,0 +1,23 @@ +// run-pass + +#![allow(path_statements)] +// aux-build:issue-50061.rs + +#![feature(decl_macro)] + +extern crate issue_50061; + +macro inner(any_token $v: tt) { + $v +} + +macro outer($v: tt) { + inner!(any_token $v) +} + +#[issue_50061::check] +fn main() { + //! this doc comment forces roundtrip through a string + let checkit = 0; + outer!(checkit); +} |