mirror of
https://github.com/cc65/cc65.git
synced 2024-11-12 07:07:19 +00:00
15 lines
193 B
C
15 lines
193 B
C
/* Bug #2018 - Compiler has problems with const struct fields */
|
|
|
|
typedef union U {
|
|
int a : 16;
|
|
const int b : 16;
|
|
} U;
|
|
|
|
int main(void)
|
|
{
|
|
U x = { 42 };
|
|
x.b = 0;
|
|
|
|
return 0;
|
|
}
|