// option. This file may not be copied, modified, or distributed
// except according to those terms.
-#![feature(asm, macro_rules)]
+#![feature(asm)]
type History = Vec<&'static str>;
: "r"(&wrap(y, "in", &mut history)));
}
assert_eq!((x,y), (1,1));
- assert_eq!(history.as_slice(), &["out", "in"]);
+ let b: &[_] = &["out", "in"];
+ assert_eq!(history.as_slice(), b);
}
}
}
-#[cfg(target_arch = "x86")]
-#[cfg(target_arch = "x86_64")]
+#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
fn main() {
fn out_write_only_expr_then_in_expr() {
demo!("=r")
out_read_write_expr_then_in_expr();
}
-#[cfg(not(target_arch = "x86"), not(target_arch = "x86_64"))]
+#[cfg(all(not(target_arch = "x86"), not(target_arch = "x86_64")))]
pub fn main() {}