Fix test not to depend on environment
This commit is contained in:
parent
54f860158b
commit
48cad460bc
1 changed files with 5 additions and 6 deletions
|
@ -1,15 +1,14 @@
|
||||||
// check-pass
|
// check-pass
|
||||||
|
|
||||||
macro_rules! def_target {
|
macro_rules! foo {
|
||||||
($target: expr) => {
|
($doc: expr) => {
|
||||||
#[target_feature(enable=$target)]
|
fn f() {
|
||||||
unsafe fn f() {
|
#[doc = $doc]
|
||||||
#[target_feature(enable=$target)]
|
|
||||||
()
|
()
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
def_target!("avx2");
|
foo!("doc");
|
||||||
|
|
||||||
fn main() {}
|
fn main() {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue