parenthesise casts and conditionals by precedence

Neither took part in it: a cast parenthesised its operand only from a
list of binary heads that missed `|', and never itself, so `->' took
it apart; `?:' was written bare under any operator, swallowing it into
the test. Three of the four still compiled, to wrong values.

Fixes #59, #61, #62.
This commit is contained in:
2026-10-09 15:41:43 +03:00
parent 0119c85ded
commit db9801331f
4 changed files with 81 additions and 26 deletions

View File

@@ -118,6 +118,7 @@ SEX_TEST_PROGRAMS = c11 \
lists \
operators \
ops \
precedence \
records \
serialize \
specs \