summaryrefslogtreecommitdiffstats
path: root/tests/ui/proc-macro/issue-50061.rs
blob: 01c6b80b46ca7905412c2fdb994a4016755a6a44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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);
}