ORCA-C/Tests/Deviance/DOIT
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

58 lines
911 B
Plaintext

{1} D2.1.0.1.CC
{1} D2.2.0.2.CC
{1} D2.4.0.1.CC
{1} D2.5.0.1.CC
{1} D2.5.0.2.CC
{1} D2.7.1.1.CC
{1} D2.7.1.2.CC
{1} D2.7.2.1.CC
{1} D2.7.3.1.CC
{1} D2.7.3.3.CC
{1} D2.7.4.1.CC
{1} D2.7.4.4.CC
{1} D25.0.1.CC
{1} D25.0.2.CC
{1} D3.3.1.1.CC
{1} D3.3.10.1.CC
{1} D3.3.2.1.CC
{1} D3.3.3.1.CC
{1} D3.3.4.1.CC
{1} D3.3.5.1.CC
{1} D3.4.0.1.CC
{1} D3.5.1.1.CC
{1} D3.5.2.1.CC
{1} D3.5.3.1.CC
{1} D3.5.5.1.CC
{1} D4.2.1.1.CC
{1} D4.2.2.1.CC
{1} D4.2.3.1.CC
{1} D4.2.5.1.CC
{1} D4.2.9.1.CC
{1} D4.3.0.1.CC
{1} D4.4.1.1.CC
{1} D4.5.3.1.CC
{1} D4.6.0.1.CC
{1} D4.6.0.2.CC
{1} D4.6.1.1.CC
{1} D4.6.2.1.CC
{1} D4.6.3.1.CC
{1} D4.6.4.1.CC
{1} D4.6.5.1.CC
{1} D4.6.6.1.CC
{1} D4.6.7.1.CC
{1} D4.6.8.1.CC
{1} D7.1.1.1.CC
{1} D7.5.4.1.CC
{1} D7.6.1.1.CC
{1} D7.6.1.2.CC
{1} D7.6.1.3.CC
{1} D7.6.3.1.CC
{1} D7.6.4.1.CC
{1} D7.6.6.1.CC
{1} D7.6.7.1.CC
{1} D7.6.8.1.CC
{1} D7.8.0.1.CC
{1} D8.7.0.1.CC
{1} D8.8.0.1.CC
{1} D9.2.0.1.CC