blob: 84e01eb4803fe55e1e2ce27afe88fe5c31670005 [file] [log] [blame] [edit]
//@only-target-x86_64: uses x86 target features
//@ignore-target-x86_64-apple-darwin: that target actually has ssse3
fn main() {
assert!(!is_x86_feature_detected!("ssse3"));
unsafe {
ssse3_fn(); //~ ERROR: calling a function that requires unavailable target features: ssse3
}
}
#[target_feature(enable = "ssse3")]
unsafe fn ssse3_fn() {}