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
LIBFILE2
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
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
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
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
SPC25.1.EXEC
SPC25.1.H
SPC25.2.1.CC
SPC25.2.EXEC
SPC3401.EXEC
SPC4301.1.CC
SPC4301.2.CC
SPC4301.EXEC
SPC4301.H
SPC4311.1.CC
SPC4311.EXEC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4411.1.CC
SPC4411.EXEC
SPC4521.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4521.EXEC
SPC4521.H
SPC4531.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4531.EXEC
SPC4531.H
SPC4532.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4532.EXEC
SPC4532.H
SPC4631.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4631.EXEC
SPC4632.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4632.EXEC
SPC4633.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4633.EXEC
SPC4634.1.CC Fix various C99+ conformance issues and bugs in test cases. 2022-10-17 20:17:24 -05:00
SPC4634.EXEC
SPC4636.1.CC
SPC4636.EXEC
SPC34021
SPC34022
SPC34023
SPC34024
SPC34025
SPC34026
SPC34027
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