zig/test/behavior/bugs/12644.zig
Robin Voetter faad97edff
spirv: update failing / passing tests
Some tests are now failing due to debug info changes, some tests
now pass due to improved compiler functionality.
2023-10-15 20:08:18 +02:00

17 lines
279 B
Zig

const std = @import("std");
const builtin = @import("builtin");
inline fn foo(comptime T: type) !T {
return error.AnError;
}
fn main0() !void {
_ = try foo(u8);
}
test "issue12644" {
main0() catch |e| {
try std.testing.expect(e == error.AnError);
};
}