summary refs log tree commit diff
path: root/src/test/run-pass/macro.rs
blob: 42bc26797d1c53af4033bb18743ffd315cacb004 (plain)
1
2
3
4
5
6
7
8
9
10
11
// xfail-pretty - token trees can't pretty print

fn main() {
    #macro[[#m1[a], a * 4]];
    assert (m1!(2) == 8);

    macro_rules! m1tt (
        ($a:expr) => {$a*4}
    );
    assert(m1tt!(2) == 8);
}