mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 13:54:21 +00:00
Revert "delete failing test case"
This reverts commit ba4d4602ab9bb0dc17fc0d57141d9324bdbb356d.
This commit is contained in:
parent
2f9d8d5a9b
commit
fcc7e378f8
1 changed files with 17 additions and 0 deletions
|
|
@ -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
|
||||||
Loading…
Add table
Reference in a new issue