From 50339f595aa6ec96760b1cd9f8d0e0bfc3f167fc Mon Sep 17 00:00:00 2001 From: Eric Joldasov Date: Thu, 15 Jun 2023 13:14:16 +0600 Subject: all: zig fmt and rename "@XToY" to "@YFromX" Signed-off-by: Eric Joldasov --- test/cases/compile_errors/indirect_struct_loop.zig | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'test/cases/compile_errors/indirect_struct_loop.zig') diff --git a/test/cases/compile_errors/indirect_struct_loop.zig b/test/cases/compile_errors/indirect_struct_loop.zig index dca2b9c3f6..ef5526830e 100644 --- a/test/cases/compile_errors/indirect_struct_loop.zig +++ b/test/cases/compile_errors/indirect_struct_loop.zig @@ -1,13 +1,21 @@ -const A = struct { b : B, }; -const B = struct { c : C, }; -const C = struct { a : A, }; -export fn entry() usize { return @sizeOf(A); } +const A = struct { + b: B, +}; +const B = struct { + c: C, +}; +const C = struct { + a: A, +}; +export fn entry() usize { + return @sizeOf(A); +} // error // backend=stage2 // target=native // // :1:11: error: struct 'tmp.A' depends on itself -// :3:20: note: while checking this field -// :2:20: note: while checking this field -// :1:20: note: while checking this field +// :8:5: note: while checking this field +// :5:5: note: while checking this field +// :2:5: note: while checking this field -- cgit v1.2.3