Deprecate old void! @benchmark and @test functions.

This commit is contained in:
Christoffer Lerno
2025-01-09 20:33:53 +01:00
parent c22b7d45c1
commit b941f93416
73 changed files with 988 additions and 860 deletions

View File

@@ -1,21 +1,21 @@
import std::thread;
fn void! bench1() @benchmark
fn void bench1() @benchmark
{
return std::thread::sleep_ms(1);
std::thread::sleep_ms(1)!!;
}
fn void! bench123456789() @benchmark
fn void bench123456789() @benchmark
{
return std::thread::sleep_ms(2);
std::thread::sleep_ms(2)!!;
}
fn void! long_name_bench() @benchmark
fn void long_name_bench() @benchmark
{
return std::thread::sleep_ms(3);
std::thread::sleep_ms(3)!!;
}
fn void! very_long_name_bench() @benchmark
fn void very_long_name_bench() @benchmark
{
return std::thread::sleep_ms(10);
}