Revert "delete failing test case"
This reverts commit ba4d4602ab9bb0dc17fc0d57141d9324bdbb356d.
1 files changed, 17 insertions(+), 0 deletions(-)
test/cases/compile_errors/enum_field_value_references_enum.zig created+17
| ... | @@ -0,0 +1,17 @@ |
| 1 | pub const Foo = enum(c_int) { |
| 2 | A = Foo.B, |
| 3 | C = D, |
| 4 | |
| 5 | pub const B = 0; |
| 6 | }; |
| 7 | export fn entry() void { |
| 8 | const s: Foo = Foo.E; |
| 9 | _ = s; |
| 10 | } |
| 11 | const D = 1; |
| 12 | |
| 13 | // error |
| 14 | // backend=stage2 |
| 15 | // target=native |
| 16 | // |
| 17 | // :1:5: error: dependency loop detected |