1const A = struct {
2 b: B,
3};
4const B = struct {
5 c: C,
6};
7const C = struct {
8 a: A,
9};
10export fn entry() usize {
11 return @sizeOf(A);
12}
13
14// error
15//
16// error: dependency loop with length 3
17// :2:8: note: type 'tmp.A' depends on type 'tmp.B' for field declared here
18// :5:8: note: type 'tmp.B' depends on type 'tmp.C' for field declared here
19// :8:8: note: type 'tmp.C' depends on type 'tmp.A' for field declared here
20// note: eliminate any one of these dependencies to break the loop