From 3204d00a5e7fe119b690e921138a439fb84dff5b Mon Sep 17 00:00:00 2001 From: Veikka Tuominen Date: Mon, 27 Jun 2022 18:32:59 +0300 Subject: move passing stage1 compile error tests to stage2 --- .../compile_errors/initializing_array_with_struct_syntax.zig | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/cases/compile_errors/initializing_array_with_struct_syntax.zig (limited to 'test/cases/compile_errors/initializing_array_with_struct_syntax.zig') diff --git a/test/cases/compile_errors/initializing_array_with_struct_syntax.zig b/test/cases/compile_errors/initializing_array_with_struct_syntax.zig new file mode 100644 index 0000000000..b8448b2758 --- /dev/null +++ b/test/cases/compile_errors/initializing_array_with_struct_syntax.zig @@ -0,0 +1,10 @@ +export fn entry() void { + const x = [_]u8{ .y = 2 }; + _ = x; +} + +// error +// backend=stage2 +// target=native +// +// :2:15: error: initializing array with struct syntax -- cgit v1.2.3