ORCA-C/Tests/Deviance
Stephen Heumann 91d33b586d Fix various C99+ conformance issues and bugs in test cases.
The main changes made to most tests are:

*Declarations always include explicit types, not relying on implicit int. The declaration of main in most test programs is changed to be "int main (void) {...}", adding an explicit return type and a prototype. (There are still some non-prototyped functions, though.)

*Functions are always declared before use, either by including a header or by providing a declaration for the specific function. The latter approach is usually used for printf, to avoid requiring ORCA/C to process stdio.h when compiling every test case (which might make test runs noticeably slower).

*Make all return statements in non-void functions (e.g. main) return a value.

*Avoid some instances of undefined behavior and type errors in printf and scanf calls.

Several miscellaneous bugs are also fixed.

There are still a couple test cases that intentionally rely on the C89 behavior, to ensure it still works.
2022-10-17 20:17:24 -05:00
..
D2.1.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D2.2.0.2.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D2.4.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D2.5.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D2.5.0.2.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D2.7.1.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D2.7.1.2.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D2.7.2.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D2.7.3.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D2.7.3.3.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D2.7.4.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D2.7.4.4.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D3.3.1.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D3.3.2.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D3.3.3.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D3.3.4.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D3.3.5.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D3.3.10.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D3.4.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D3.5.1.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D3.5.2.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D3.5.3.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D3.5.5.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D4.2.1.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D4.2.2.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D4.2.3.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D4.2.5.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D4.2.9.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D4.3.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D4.4.1.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D4.5.3.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D4.6.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D4.6.0.2.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D4.6.1.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D4.6.2.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D4.6.3.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D4.6.4.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D4.6.5.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D4.6.6.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D4.6.7.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D4.6.8.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D7.1.1.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D7.5.4.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D7.6.1.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D7.6.1.2.CC
D7.6.1.3.CC
D7.6.3.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D7.6.4.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D7.6.6.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D7.6.7.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D7.6.8.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D7.8.0.1.CC Fix type checking and result type computation for ? : operator. 2022-06-23 22:05:34 -05:00
D8.7.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D8.8.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D9.2.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D25.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D25.0.2.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
D3401.DATA
DOIT Fix type checking and result type computation for ? : operator. 2022-06-23 22:05:34 -05:00
RUN.DEVIANCE
TEST
TEST2