Revert "delete failing test case"

This reverts commit ba4d4602ab9bb0dc17fc0d57141d9324bdbb356d.
This commit is contained in:
mlugg 2025-09-10 12:50:09 +01:00 committed by Andrew Kelley
parent 2f9d8d5a9b
commit fcc7e378f8

View file

@ -0,0 +1,17 @@
pub const Foo = enum(c_int) {
A = Foo.B,
C = D,
pub const B = 0;
};
export fn entry() void {
const s: Foo = Foo.E;
_ = s;
}
const D = 1;
// error
// backend=stage2
// target=native
//
// :1:5: error: dependency loop detected