mirror of
https://gitlab.com/camelot/kickc.git
synced 2025-08-07 06:30:04 +00:00
- Added test cases. - Reworked parser. - Added code redesign to avoid crashes in Initializers.java.
14 lines
223 B
C
14 lines
223 B
C
// Minimal union with C99 style designator initialization behaviour.
|
|
|
|
union Data {
|
|
char b;
|
|
unsigned w;
|
|
};
|
|
|
|
union Data data = { .w=1234 };
|
|
|
|
char* const SCREEN = (char*)0x0400;
|
|
|
|
void main() {
|
|
SCREEN[0] = data.b;
|
|
} |