We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
needs-target-has-atomic
1 parent a74764c commit cf45d77Copy full SHA for cf45d77
tests/ui/compiletest-self-test/only-target-has-atomic.rs
@@ -0,0 +1,9 @@
1
+// Check this ignored because x86_64-unknown-linux-gnu does not have 128-bit atomic operation.
2
+
3
+//@ only-x86_64-unknown-linux-gnu
4
+//@ needs-target-has-atomic: 128
5
6
+fn main() {
7
+ #[cfg(not(target_has_atomic = "128"))]
8
+ compile_error!("target does not have 128-bit atomic operation");
9
+}
0 commit comments