1
Fork 0

coverage: Add a test that uses #[bench]

This commit is contained in:
Zalathar 2024-01-21 12:18:48 +11:00
parent cb25c5bc3d
commit bdfc64ac98
3 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,9 @@
LL| |#![feature(test)]
LL| |// edition: 2021
LL| |// compile-flags: --test
LL| |
LL| |extern crate test;
LL| |
LL| 1|#[bench]
LL| 1|fn my_bench(_b: &mut test::Bencher) {}