aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/stage2/compile_errors.zig12
1 files changed, 9 insertions, 3 deletions
diff --git a/test/stage2/compile_errors.zig b/test/stage2/compile_errors.zig
index f7766abcef..1184048cbb 100644
--- a/test/stage2/compile_errors.zig
+++ b/test/stage2/compile_errors.zig
@@ -86,12 +86,18 @@ pub fn addCases(ctx: *TestContext) !void {
\\export fn entry() void {}
);
}
+ {
+ var case = ctx.obj("missing function name", linux_x64);
+ case.addError(
+ \\fn() void {}
+ , &[_][]const u8{":1:3: error: missing function name"});
+ case.compiles(
+ \\fn a() void {}
+ );
+ }
// TODO: re-enable these tests.
// https://github.com/ziglang/zig/issues/1364
- // ctx.addError("Missing function name", linux_x64, .Zig,
- // \\fn() void {}
- // , &[_][]const u8{":1:3: error: missing function name"});
//ctx.testCompileError(
// \\comptime {
// \\ return;