mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-14 21:16:50 +00:00
Fix test not to depend on environment
This commit is contained in:
parent
54f860158b
commit
48cad460bc
@ -1,15 +1,14 @@
|
||||
// check-pass
|
||||
|
||||
macro_rules! def_target {
|
||||
($target: expr) => {
|
||||
#[target_feature(enable=$target)]
|
||||
unsafe fn f() {
|
||||
#[target_feature(enable=$target)]
|
||||
macro_rules! foo {
|
||||
($doc: expr) => {
|
||||
fn f() {
|
||||
#[doc = $doc]
|
||||
()
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
def_target!("avx2");
|
||||
foo!("doc");
|
||||
|
||||
fn main() {}
|
||||
|
Loading…
Reference in New Issue
Block a user