Stephen Heumann
102d6873a3
Fix type checking and result type computation for ? : operator.
...
This was non-standard in various ways, mainly in regard to pointer types. It has been rewritten to closely follow the specification in the C standards.
Several helper functions dealing with types have been introduced. They are currently only used for ? :, but they might also be useful for other purposes.
New tests are also introduced to check the behavior for the ? : operator.
This fixes #35 (including the initializer-specific case).
2022-06-23 22:05:34 -05:00
..
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2022-06-18 22:03:22 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2018-09-15 00:03:44 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2022-06-23 22:05:34 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2022-06-23 22:05:34 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00
2017-10-21 18:40:19 -05:00