rust/src/test/ui/macros/issue-68058.rs

16 lines
248 B
Rust
Raw Normal View History

2020-01-09 15:52:22 -06:00
// check-pass
macro_rules! def_target {
($target: expr) => {
#[target_feature(enable=$target)]
unsafe fn f() {
#[target_feature(enable=$target)]
()
}
};
}
def_target!("avx2");
fn main() {}