You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui/simd-abi-checks.rs
+17-1
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
#![feature(avx512_target_feature)]
6
6
#![feature(portable_simd)]
7
-
#![feature(target_feature_11)]
7
+
#![feature(target_feature_11, simd_ffi)]
8
8
#![allow(improper_ctypes_definitions)]
9
9
10
10
use std::arch::x86_64::*;
@@ -91,4 +91,20 @@ fn main() {
91
91
unsafe{
92
92
in_closure()();
93
93
}
94
+
95
+
unsafe{
96
+
#[expect(improper_ctypes)]
97
+
extern"C"{
98
+
fnsome_extern() -> __m256;
99
+
}
100
+
some_extern();
101
+
//~^ WARNING this function call uses a SIMD vector type that (with the chosen ABI) requires the `avx` target feature, which is not enabled in the caller
102
+
//~| WARNING this was previously accepted by the compiler
0 commit comments