test: check compile errors when compilation has no errors

This commit is contained in:
dweiller
2023-11-19 01:35:59 +11:00
committed by Veikka Tuominen
parent 4e212f1650
commit 325e0f5f0e
12 changed files with 12 additions and 20 deletions

View File

@@ -1,10 +1,10 @@
const x = @extern(*const fn() callconv(.C) void, .{ .name = "foo" });
pub fn entry0() void {
export fn entry0() void {
comptime x();
}
pub fn entry1() void {
export fn entry1() void {
@call(.always_inline, x, .{});
}