mirror of
https://github.com/Nexoniarz/Finch.git
synced 2026-11-03 00:44:27 +00:00
C import: unions (SDL_Event) and their fields; #defines that are expressions, casts or text; typedef'd structs no function mentions; FLAG_A | FLAG_B fits a u64
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
6142e47e71
commit
d0666cf788
7 changed files with 314 additions and 13 deletions
5
tests/new/fail/union_two_fields.fch
Normal file
5
tests/new/fail/union_two_fields.fch
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// expect: Event is a C union: give one field by name
|
||||
import "../cunion.h"
|
||||
fn main() {
|
||||
e := Event(1, 2)
|
||||
}
|
||||
Loading…
Reference in a new issue