mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 04:48:20 +00:00
fix test-case copy-paste typo from earlier commit
commit 3204d00a5e7fe119b690e921138a439fb84dff5b intended to move this passing test case from stage1 folder but it was accidentally changed to have identical contents as a different test case instead. Fortunately, the test case has not regressed, so I simply replaced it with the intended test from before.
This commit is contained in:
parent
1f59994a37
commit
7177b39946
@ -1,9 +1,13 @@
|
||||
export fn a() void {
|
||||
b();
|
||||
const Foo = struct {
|
||||
a: undefined,
|
||||
};
|
||||
export fn entry1() void {
|
||||
const foo: Foo = undefined;
|
||||
_ = foo;
|
||||
}
|
||||
|
||||
// error
|
||||
// backend=stage2
|
||||
// backend=stage1
|
||||
// target=native
|
||||
//
|
||||
// :2:5: error: use of undeclared identifier 'b'
|
||||
// tmp.zig:2:8: error: use of undefined value here causes undefined behavior
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user