mirror of
https://github.com/ziglang/zig.git
synced 2024-11-28 16:12:33 +00:00
9f4408d68b
Many of these tests check for the incorrect behavior of stage1 whereas self-hosted correctly does not emit an error, so they are simply deleted. The remaining number of test cases within the stage1/ subdirectory is reduced from 143 to 103.
11 lines
175 B
Zig
11 lines
175 B
Zig
comptime {
|
|
var a: i64 = undefined;
|
|
_ = a * a;
|
|
}
|
|
|
|
// error
|
|
// backend=stage2
|
|
// target=native
|
|
//
|
|
// :3:13: error: use of undefined value here causes undefined behavior
|