Merge pull request #2521 from kugelfuhr/kugelfuhr/fix-2520

Fix wrong evaluation of ternary expressions in the preprocessor
This commit is contained in:
Bob Andrews
2024-09-15 19:24:22 +02:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

4
test/val/bug2520.c Normal file
View File

@@ -0,0 +1,4 @@
#if (1 ? 2 : 0) != 2
#error
#endif
int main() { return 0; }