mirror of
https://github.com/cc65/cc65.git
synced 2024-12-27 00:29:31 +00:00
test related to issue #1221
This commit is contained in:
parent
b3491e3d9a
commit
a86644eff1
12
test/val/bug1221.c
Normal file
12
test/val/bug1221.c
Normal file
@ -0,0 +1,12 @@
|
||||
/* 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user