aboutsummaryrefslogtreecommitdiff
path: root/tests2/40_stdio.c
Commit message (Collapse)AuthorAgeFilesLines
* tests2: move into testsgrischka2013-02-051-52/+0
|
* Fix [f]getc return value usage in 40_stdio testThomas Preud'homme2013-01-241-1/+1
| | | | | | Store [f]getc return value into an int instead of char, as per prototype. This fix an issue when char is unsigned (as is on arm for both tcc and gcc).
* tests: Added numerous tests.Milutin Jovanović2012-06-181-0/+52
The tests are taken almost verbatim from the open source project PicoC. It can be found at https://code.google.com/p/picoc/. The tests range from very simple/trivial ones to more complicated. My view is that the more tests the better. Without tests like this I was very reluctant to make any changes to tcc for the fear of breaking things. The tests pass on Win32, OSX, Linux x86 and x86_64. One or two tests fail on each platform due to differences in the runtime library.