File tree 3 files changed +21
-13
lines changed
tests/run-make/test-benches
3 files changed +21
-13
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,6 @@ run-make/staticlib-dylib-linkage/Makefile
100
100
run-make/symbol-mangling-hashed/Makefile
101
101
run-make/symbol-visibility/Makefile
102
102
run-make/sysroot-crates-are-unstable/Makefile
103
- run-make/test-benches/Makefile
104
103
run-make/thumb-none-cortex-m/Makefile
105
104
run-make/thumb-none-qemu/Makefile
106
105
run-make/translation/Makefile
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ // #[bench] is a Rust feature to run benchmarks on performance-critical
2
+ // code, which previously experienced a runtime panic bug in #103794.
3
+ // In order to ensure future breakages of this feature are detected, this
4
+ // smoke test was created, using the benchmarking feature with various
5
+ // runtime flags.
6
+ // See https://github.com/rust-lang/rust/issues/103794
7
+
8
+ //@ ignore-cross-compile
9
+ // Reason: the compiled binary is executed
10
+ //@ needs-unwind
11
+ // Reason: #[bench] and -Zpanic-abort-tests can't be combined
12
+
13
+ use run_make_support:: { run, run_with_args, rustc} ;
14
+
15
+ fn main ( ) {
16
+ rustc ( ) . arg ( "--test" ) . input ( "smokebench.rs" ) . opt ( ) . run ( ) ;
17
+ run_with_args ( "smokebench" , & [ "--bench" ] ) ;
18
+ run_with_args ( "smokebench" , & [ "--bench" , "noiter" ] ) ;
19
+ run_with_args ( "smokebench" , & [ "--bench" , "yesiter" ] ) ;
20
+ run ( "smokebench" ) ;
21
+ }
You can’t perform that action at this time.
0 commit comments