diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-05-08 17:29:44 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-05-08 17:29:44 -0400 |
| commit | 67154d233ef68d9fd63e673e63e7d66f149060a5 (patch) | |
| tree | 341521e1c7cd9d3ea77726e27661b08d46b9a8dd /test/compile_errors.zig | |
| parent | fed1c9c3ece7b79ce7fccc6af510f1dab98401a9 (diff) | |
| parent | 7437c47d55da4c73aba26327d1a140aaf6591d4a (diff) | |
| download | zig-67154d233ef68d9fd63e673e63e7d66f149060a5.tar.gz zig-67154d233ef68d9fd63e673e63e7d66f149060a5.zip | |
Merge pull request #8686 from Vexu/try
Allow tests to fail
Diffstat (limited to 'test/compile_errors.zig')
| -rw-r--r-- | test/compile_errors.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/compile_errors.zig b/test/compile_errors.zig index 5b36027248..a1a9fbf460 100644 --- a/test/compile_errors.zig +++ b/test/compile_errors.zig @@ -230,7 +230,7 @@ pub fn addCases(cases: *tests.CompileErrorContext) void { cases.add("array in c exported function", \\export fn zig_array(x: [10]u8) void { - \\ expect(std.mem.eql(u8, &x, "1234567890")); + \\try expect(std.mem.eql(u8, &x, "1234567890")); \\} \\ \\export fn zig_return_array() [10]u8 { |
