diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-08-02 19:54:54 +0300 |
|---|---|---|
| committer | Veikka Tuominen <git@vexu.eu> | 2022-08-03 16:45:33 +0300 |
| commit | aa78ebaf95af5a3587194d8dbcb101a49c0bb898 (patch) | |
| tree | 9bcaccf99a4460368f9e9bafc9032d6167864e92 /test/cases/compile_errors/direct_struct_loop.zig | |
| parent | 797ded47f05ce033be58d3fb78d777ec3218048b (diff) | |
| download | zig-aa78ebaf95af5a3587194d8dbcb101a49c0bb898.tar.gz zig-aa78ebaf95af5a3587194d8dbcb101a49c0bb898.zip | |
Sema: improve circular dependency errors
Diffstat (limited to 'test/cases/compile_errors/direct_struct_loop.zig')
| -rw-r--r-- | test/cases/compile_errors/direct_struct_loop.zig | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/cases/compile_errors/direct_struct_loop.zig b/test/cases/compile_errors/direct_struct_loop.zig new file mode 100644 index 0000000000..0abc1a4f73 --- /dev/null +++ b/test/cases/compile_errors/direct_struct_loop.zig @@ -0,0 +1,9 @@ +const A = struct { a : A, }; +export fn entry() usize { return @sizeOf(A); } + +// error +// backend=stage2 +// target=native +// +// :1:11: error: struct 'tmp.A' depends on itself +// :1:20: note: while checking this field |
