blob: 3dece7f5c15c875198cc993ea33723361764bb33 (
plain)
1
2
3
4
5
6
7
8
9
10
|
export fn entry() void {
const U = union(enum) { a: bool, b: bool };
switch (@as(U, undefined)) {
.a, .b => {},
}
}
// error
//
// :3:5: error: use of undefined value here causes illegal behavior
|