about summary refs log tree commit diff
path: root/tests/ui/proc-macro/issue-50061.rs
blob: 8a660c2f3506a23fccb8d42660263c0b9d299012 (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)]
//@ proc-macro: 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);
}