Sema: bad union field access safety

This commit is contained in:
Veikka Tuominen
2022-07-16 16:32:49 +03:00
parent 55fe34100f
commit ff7ec4efb5
15 changed files with 194 additions and 90 deletions

View File

@@ -13,5 +13,4 @@ export fn entry() void {
// backend=stage2
// target=native
//
// :9:14: error: expected type 'type', found 'tmp.U'
// :1:11: note: union declared here
// :9:8: error: use of undefined value here causes undefined behavior