diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-06-30 18:39:46 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-30 18:39:46 -0400 |
| commit | 1951051e3d692d8257e46fc23a7dff9447828fd7 (patch) | |
| tree | 24d1e8ec92fcc47c7774a6ed35b3e228796d1158 /test/cases/compile_errors/initializing_array_with_struct_syntax.zig | |
| parent | 77a334451f1329110d6c1bd07b46813cef10e97c (diff) | |
| parent | 4cde6dd10902ebeec3b3000b76d6395c49f5a241 (diff) | |
| download | zig-1951051e3d692d8257e46fc23a7dff9447828fd7.tar.gz zig-1951051e3d692d8257e46fc23a7dff9447828fd7.zip | |
Merge pull request #11942 from Vexu/stage2-compile-errors
Move passing stage1 compile error tests to stage2
Diffstat (limited to 'test/cases/compile_errors/initializing_array_with_struct_syntax.zig')
| -rw-r--r-- | test/cases/compile_errors/initializing_array_with_struct_syntax.zig | 10 |
1 files changed, 10 insertions, 0 deletions
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 |
