diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2022-04-28 11:42:14 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2022-04-28 18:35:01 +0200 |
| commit | 2875216f8e01c4e71a76fe840a0b298f0d42758e (patch) | |
| tree | 1d0d50ee200424ba1af988267179f624864a025c /test/incremental/x86_64-linux/assert_function.16.zig | |
| parent | 5a5648c0f03058e1d3878cc8c072af968fc90aa8 (diff) | |
| download | zig-2875216f8e01c4e71a76fe840a0b298f0d42758e.tar.gz zig-2875216f8e01c4e71a76fe840a0b298f0d42758e.zip | |
test: fix x86_64-macos failures
This is just a temporary fix - I would like to unify all of x86_64
tests across linux and macos OSes.
Diffstat (limited to 'test/incremental/x86_64-linux/assert_function.16.zig')
| -rw-r--r-- | test/incremental/x86_64-linux/assert_function.16.zig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/incremental/x86_64-linux/assert_function.16.zig b/test/incremental/x86_64-linux/assert_function.16.zig new file mode 100644 index 0000000000..eef1136423 --- /dev/null +++ b/test/incremental/x86_64-linux/assert_function.16.zig @@ -0,0 +1,11 @@ +const hello = "hello".*; +pub fn main() void { + assert(hello[1] == 'e'); +} + +pub fn assert(ok: bool) void { + if (!ok) unreachable; // assertion failure +} + +// run +// |
