Merge pull request #1897 from acqn/TernaryFix

[cc65] Fixed errors in the conditional operator "? :" parser
This commit is contained in:
Bob Andrews
2022-11-02 18:13:45 +01:00
committed by GitHub
3 changed files with 18 additions and 8 deletions

8
test/err/bug1893.c Normal file
View 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;
}