1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-11 01:05:25 +00:00
cc65/test/val/bug1221.c

13 lines
229 B
C
Raw Normal View History

2020-09-23 22:08:36 +00:00
/* bug #1221 - Structs/unions as ternary operands */
int a;
struct S { int a; } s1, s2;
struct U { int a; } u1, u2;
int main()
{
a ? s1 : s2; /* BUG: should be OK */
a ? u1 : u2; /* BUG: should be OK */
return 0;
}