Merge pull request #1897 from acqn/TernaryFix
[cc65] Fixed errors in the conditional operator "? :" parser
This commit is contained in:
8
test/err/bug1893.c
Normal file
8
test/err/bug1893.c
Normal file
@@ -0,0 +1,8 @@
|
||||
/* bug #1893 - Compiler accepts a ternary expression where it shouldn't */
|
||||
|
||||
int main(void)
|
||||
{
|
||||
int a, b, c;
|
||||
a == 1? b : c = 3;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user