mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Deprecate old void! @benchmark and @test functions.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user