Add --strip-unused.

This commit is contained in:
Christoffer Lerno
2023-02-16 22:02:44 +01:00
committed by Christoffer Lerno
parent 0aa776d61b
commit a0a5c940f1
40 changed files with 681 additions and 94 deletions

View File

@@ -8,16 +8,16 @@ fn void! test_likely() @test
fn void! test_unlikely() @test
{
assert(@unlikely(2 < 1));
assert(@unlikely(2 < 1, 0.5));
assert(!@unlikely(2 < 1));
assert(!@unlikely(2 < 1, 0.5));
}
fn void! test_expect() @test
{
assert(@expect(2 > 1, true));
assert(@expect(2 < 1, false));
assert(!@expect(2 < 1, false));
assert(@expect(2 > 1, true, 0.5));
assert(@expect(2 < 1, false, 0.5));
assert(!@expect(2 < 1, false, 0.5));
}