ORCA-C/Tests/Spec.Conform
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
..
CFILE1 Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
LIBFILE2 Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC2.1.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC3.3.4.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC3.4.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC3.4.0.2.CC Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC3.6.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC3.6.0.2.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC3.6.0.3.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4.3.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4.3.1.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4.4.1.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4.5.2.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4.5.3.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4.5.3.2.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4.6.3.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4.6.3.2.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4.6.3.3.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4.6.3.4.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4.6.3.5.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4.6.3.6.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC13.2.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC13.4.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC17.2.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC17.2.0.2.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC17.2.0.3.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC17.3.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC17.3.0.2.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC17.3.0.3.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC17.3.0.4.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC17.3.0.5.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC17.6.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC17.7.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC17.16.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC20.2.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC21.1.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC21.2.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC21.3.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC21.3.0.2.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC21.3.0.3.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC22.1.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC22.101.EXEC Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC23.2.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC23.201.EXEC Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC25.0.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC25.0.2.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC25.1.1.CC Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC25.1.EXEC Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC25.1.H Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC25.2.1.CC Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC25.2.EXEC Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC3401.EXEC Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC4301.1.CC Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC4301.2.CC Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC4301.EXEC Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC4301.H Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC4311.1.CC Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC4311.EXEC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4411.1.CC Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC4411.EXEC Consistently use upper-case filenames for existing test cases. 2021-07-09 19:43:57 -05:00
SPC4521.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4521.EXEC Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC4521.H Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC4531.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4531.EXEC Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC4531.H Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC4532.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4532.EXEC Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC4532.H Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC4631.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4631.EXEC Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC4632.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4632.EXEC Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC4633.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4633.EXEC Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC4634.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4634.EXEC Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC4636.1.CC Fix a buggy test case. 2021-03-01 17:52:59 -06:00
SPC4636.EXEC Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC34021 Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC34022 Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC34023 Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC34024 Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC34025 Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC34026 Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC34027 Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00
SPC34028 Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
UFILE1 Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
USERFILE2 Change all text/source files to LF line endings. 2017-10-21 18:40:19 -05:00