mirror of
https://github.com/ziglang/zig.git
synced 2025-12-13 17:53:07 +00:00
14 lines
358 B
Zig
14 lines
358 B
Zig
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
|