update behavior tests and compile error tests

This commit is contained in:
Andrew Kelley
2022-01-31 22:33:49 -07:00
parent 75bbc74d56
commit 4d22fa5a2a
4 changed files with 2 additions and 38 deletions

View File

@@ -1199,12 +1199,6 @@ pub fn addCases(ctx: *TestContext) !void {
"tmp.zig:5:22: error: expected type 'fn([*c]u8, ...) callconv(.C) void', found 'fn([*:0]u8, ...) callconv(.C) void'",
});
ctx.testErrStage1("dependency loop in top-level decl with @TypeInfo when accessing the decls",
\\export const foo = @typeInfo(@This()).Struct.decls;
, &[_][]const u8{
"tmp.zig:1:20: error: dependency loop detected",
});
ctx.objErrStage1("function call assigned to incorrect type",
\\export fn entry() void {
\\ var arr: [4]f32 = undefined;