1 // aux-build:proc_macro_def.rs
2 // ignore-cross-compile
4 #![feature(proc_macro_hygiene)]
6 extern crate proc_macro_def;
8 use proc_macro_def::{attr_tru, attr_identity, identity, ret_tru, tru};
17 return identity!(true);
20 fn f3() -> identity!(bool) {
24 fn f4(x: bool) -> bool {
26 identity!(true) => false,
27 identity!(false) => true,
36 assert!(identity!(5 == 5));