File tree 3 files changed +16
-8
lines changed
tests/run-make/target-without-atomic-cas
3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -162,9 +162,6 @@ run-make/symbol-mangling-hashed/Makefile
162
162
run-make/symbol-visibility/Makefile
163
163
run-make/symbols-include-type-name/Makefile
164
164
run-make/sysroot-crates-are-unstable/Makefile
165
- run-make/target-cpu-native/Makefile
166
- run-make/target-specs/Makefile
167
- run-make/target-without-atomic-cas/Makefile
168
165
run-make/test-benches/Makefile
169
166
run-make/test-harness/Makefile
170
167
run-make/thumb-none-cortex-m/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // ARM Cortex-M are a class of processors supported by the rust compiler. However,
2
+ // they cannot support any atomic features, such as Arc. This test simply prints
3
+ // the configuration details of one Cortex target, and checks that the compiler
4
+ // does not falsely list atomic support.
5
+ // See https://github.com/rust-lang/rust/pull/36874
6
+
7
+ use run_make_support:: rustc;
8
+
9
+ // The target used below doesn't support atomic CAS operations. Verify that's the case
10
+ fn main ( ) {
11
+ rustc ( )
12
+ . print ( "cfg" )
13
+ . target ( "thumbv6m-none-eabi" )
14
+ . run ( )
15
+ . assert_stdout_not_contains ( r#"target_has_atomic="ptr""# ) ;
16
+ }
You can’t perform that action at this time.
0 commit comments