From c1a98cd65d48693c9cfce5fbc5e5f5a1dbf4c1b7 Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Wed, 27 Apr 2022 12:41:05 +0200 Subject: test: set case name from initial filename for a sequence Port more incremental tests. --- test/incremental/assert_function.13.zig | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/incremental/assert_function.13.zig (limited to 'test/incremental/assert_function.13.zig') diff --git a/test/incremental/assert_function.13.zig b/test/incremental/assert_function.13.zig new file mode 100644 index 0000000000..240abf0108 --- /dev/null +++ b/test/incremental/assert_function.13.zig @@ -0,0 +1,19 @@ +pub fn main() void { + const ignore = + \\ cool thx + \\ + ; + _ = ignore; + add('ぁ', '\x03'); +} + +fn add(a: u32, b: u32) void { + assert(a + b == 12356); +} + +pub fn assert(ok: bool) void { + if (!ok) unreachable; // assertion failure +} + +// run +// -- cgit v1.2.3