mrdudz
693e3a7109
added testcase for issue #1048
2020-07-13 15:12:04 +02:00
Oliver Schmidt
bcb8b49907
Removed executable bit.
2020-07-12 23:11:43 +02:00
Jesse Rosenstock
df97570471
Set .NOTPARALLEL in test/misc and test/val
...
The cl65 intermediate files stomp each other in
these directories.
2020-07-10 13:08:19 +02:00
Jesse Rosenstock
3999f2ad75
Move .NOTPARALLEL closer to rule that needs it
2020-07-10 13:08:19 +02:00
Jesse Rosenstock
878e4a57c8
Make Makefiles more -j friendly
...
Add .$1.$2 to outputs missing them.
2020-07-10 13:08:19 +02:00
mrdudz
579b50f0c5
test for issue #927
2020-07-09 16:18:08 +02:00
mrdudz
2428285694
test for issue #327
2020-07-09 16:17:31 +02:00
mrdudz
ff18218b0a
test for issue #170
2020-07-09 16:17:16 +02:00
mrdudz
5925a7f8ee
test for issue #1077
2020-07-09 16:16:46 +02:00
mrdudz
4b8b15a07a
tests for issue #169
2020-07-09 16:05:57 +02:00
mrdudz
93f0df58e5
test related to issue #1071
2020-07-09 15:57:51 +02:00
Jesse Rosenstock
359da1ae76
Update bit-field tests after #1058 merge
2020-07-08 17:20:15 +02:00
Jesse Rosenstock
8449c9eaa0
Add zlib license text
2020-07-08 17:20:15 +02:00
Jesse Rosenstock
532e6b2554
Add copyright notice
2020-07-08 17:20:15 +02:00
Jesse Rosenstock
6f85ee9d95
Add another test for bit-field unit overlap
...
Test when there is another field after bit-fields with
allocation unit overlap.
2020-07-08 17:20:15 +02:00
Jesse Rosenstock
2f456ce4e2
Add comment explaining four_bits_with_int
2020-07-08 17:20:15 +02:00
Jesse Rosenstock
8a331ee7ec
Print to stdout instead of stderr
...
Print number of failures.
This makes it consistent with the other val/ tests.
2020-07-08 17:20:15 +02:00
Jesse Rosenstock
a70ac6be30
Add test of bit-field packing for #1054 and #1055
2020-07-08 17:20:15 +02:00
Oliver Schmidt
0f8b587bc2
Added directory for currently failing regression tests.
2020-07-01 00:13:55 +02:00
Jesse Rosenstock
8891a896b5
test/ref: Use separate .out files
...
Use different .out files for different options / targets.
This allows make -j N to work.
Previously all test.*.*.prgs would use the same test.out file.
Now test.*.*.out is also used.
2020-06-29 22:34:44 +02:00
Oliver Schmidt
5277ea0b73
Add test license description.
2020-06-27 02:23:40 +02:00
Jesse Rosenstock
18246278c5
switch2.c: Remove use of REFCC and UNSIGNED_CHARS
...
Explicitly use `signed char` or `unsigned char`, rather than
```
signed char k;
char k;
signed char k;
char k;
```
This should have resulted in the same thing; however, note that
`REFCC` was never defined, and `common.h` was not included, so
the old code in fact tested `char` then `unsigned char`,
which are the same.
The only difference is that a switch using plain `char` is not
tested, but since this is the same as either `signed char` or
`unsigned char`, the lack of test coverage seems relatively safe.
2020-06-25 13:18:08 +02:00
Jesse Rosenstock
8fe317e7fa
Remove REFCC_UNSIGNED_CHARS from test/ref/
...
Explicitly use signed char or unsigned char for REFCC.
2020-06-25 13:18:08 +02:00
Jesse Rosenstock
86ba877a99
Define REFCC and REFCC_UNSIGNED_CHARS in reference
...
switch2.c uses these macros. With them unset, signed chars
are not tested.
2020-06-25 13:18:08 +02:00
mrdudz
6e6ce4e5ee
added various tests related to bug #1045
2020-06-23 00:46:12 +02:00
acqn
e9307ce58e
Moved test/ref/cc65141011.c to test/val/cc65141011.c.
2020-06-22 23:23:39 +02:00
acqn
b2268765bf
The ref test cc65141011.c now passes.
2020-06-22 23:23:39 +02:00
IrgendwerA8
08705a3fdc
Changes resulting from 2nd code review
2020-02-03 20:45:09 +01:00
IrgendwerA8
ce80624f62
ctype size optimization
2020-02-03 20:45:09 +01:00
mrdudz
a2bbb6f1be
added regression test related to bug #1001
2020-01-25 20:56:52 +01:00
mc78
7bae9038cf
Replaced plain 0's and 1's in exit statements with EXIT_SUCCESS or EXIT_FAILURE
2019-11-19 14:08:00 +01:00
Stefan
659d1729eb
Fixed exit code #974
2019-11-12 08:05:25 -05:00
Greg King
a0db846a97
Allowed old-style (K and R) function declarations to be fastcall.
...
That lets them match old-style definitions. It avoids "Type conflict" error messages. It allows shorter function calls.
Fixed the types of some variables in "test/ref/otccex.c". It avoids crashes on 64-bit Windows (32-bit Windows with 64-bit pointers).
2019-07-22 09:26:23 -04:00
Lauri Kasanen
1bfdce55ed
binlit: Add a few random leading zeros
2019-07-20 17:21:42 +02:00
Lauri Kasanen
925ea9d544
cc65: Add support for binary literals
...
Binary literals, 0b001, are a GCC extension in C and a C++14 feature.
2019-07-20 17:21:42 +02:00
Greg King
88c6dd2da8
Changed empty parameter lists into (void) lists on functions with asm() statements.
...
The fix avoids any possible problems with how cc65 will handle old-style (K & R) function declarations, in the future.
2019-07-16 13:16:02 -04:00
Björn Esser
9faca05e6a
test/ref/otccex: Fix ramdomly occurring segfault.
...
The variables named tab and p are used in the context of pointers
and thus must be declared as such. Determining the purpose they
serve, using char over int seems more feasible here as well.
2019-06-09 20:26:12 +02:00
bbbradsmith
fb7d4acd5c
versionable header for sim65
...
load and run address now configured from header
fix error codes not to conflict with test
fix test/misc/endless.c which is supposed to fail if an endless loop does not occur
2019-05-29 22:56:51 +02:00
bbbradsmith
7a863e5cda
bug895 test: more specific description comment
2019-05-27 10:03:25 +02:00
bbbradsmith
df90a005cd
bug895 testing against more permutations of comparison
2019-05-27 10:03:25 +02:00
bbbradsmith
1461ad6fcc
unit test to catch regression of bug #895
2019-05-27 10:03:25 +02:00
Christian Groessler
392e6e10fc
again, some TABs slipped into the code...
2019-04-30 18:21:13 +02:00
IrgendwerA8
37f80534c9
Fix for #830 supplied by UvB
2019-04-25 15:19:53 +02:00
Lauri Kasanen
654d972288
C90 param, void
2019-04-21 12:46:03 -04:00
Lauri Kasanen
3b3b16ee9c
Add support for computed gotos
...
This is a GCC extension that allows C to use fast jump tables.
2019-04-21 12:46:03 -04:00
Lauri Kasanen
f29220be1b
Add test showing optimizer failure, OptUnusedLoads removes needed loads
2019-04-21 12:46:03 -04:00
IrgendwerA8
1530020a1f
Fix for multiplication optimization issue #367
2019-04-02 16:34:22 +02:00
IrgendwerA8
3d8c3a4948
Code review adaptations, removed "cc65_" prefix from functions
2019-03-29 22:53:04 +01:00
IrgendwerA8
db8bd84a82
Changes due to code review.
2019-03-29 22:53:04 +01:00
IrgendwerA8
399250a105
Optimized mul20 & mul40 and extracted to new library.
2019-03-29 22:53:04 +01:00
Christian Groessler
7445550831
remote TABs in doc/ and test/
2019-02-12 22:50:49 +01:00
Greg King
a6b04f6e97
Changed most "backticks" (grave accents) into apostrophes.
...
Quotations that are embraced by tick marks now look better, in most fonts.
2019-01-05 14:57:12 -05:00
laubzega
6d8c315cdb
Testcase added.
2018-10-16 09:45:30 +02:00
laubzega
2bb4abda23
Testcase .ref updated for new warning style.
2018-10-02 18:49:53 +02:00
laubzega
c797b3b376
Proper warnings for "risky" gotos.
2018-10-02 18:49:53 +02:00
laubzega
4b78d40e97
Added testcase for between-blocks gotos.
...
Deleted old testcase.
2018-10-02 18:49:53 +02:00
laubzega
a48bbc4be0
Switched from warning to error. Tightened the testcase.
2018-10-02 18:49:53 +02:00
Laubzega
7a5acaf39a
Missed the comment.
2018-10-02 18:49:53 +02:00
Laubzega
403783b649
Add a testcase for https://github.com/cc65/cc65/pull/757
2018-10-02 18:49:53 +02:00
Oliver Schmidt
753b48647f
Increased consistency.
...
The test program works as-is only if the timezone isn't set (to something different than UTC). However, using localtime() instead of gmtime() makes it at least consistent in that the original time (given to mktime()) is identical to the time retrieved.
2018-08-02 15:45:57 +02:00
Oliver Schmidt
b04028b5d8
Added test for mktime() and gmtime().
...
A recent regression makes gmtime()/localtime() fail. So it's obviously desirable to have a test for that code.
2018-07-24 03:26:40 +02:00
Greg King
362b6afacf
Made a C union declaration know the sizes of anonymous struct/union members when it determines its size.
...
The bug was located, and the fix was written, by Francesco.
2018-05-13 18:54:45 -04:00
greg-king5
ca31e3af1e
Fixed a bug that didn't preserve the accumulator's value when a simple 16-bit fetch-and-store is optimized. ( #637 )
...
Fix a 16-bit fetch-and-store cc65 optimizer bug.
2018-05-12 13:46:16 -04:00
Oliver Schmidt
f44406c46f
Merge pull request #446 from clbr/lz4
...
Add LZ4 decompression support
2017-06-10 23:23:12 +02:00
greg-king5
06c3cd8307
Added a missing -O configuration.
2017-06-07 10:31:09 -04:00
greg-king5
e24bb372d0
Added a missing -O configuration.
2017-06-07 10:26:34 -04:00
greg-king5
a397a8c1a1
Added missing -O configuration.
2017-06-07 10:20:20 -04:00
Lauri Kasanen
e75a59d7a8
Add LZ4 decompression support
2017-06-06 18:48:25 +03:00
Lauri Kasanen
05b73276c2
Update test description
2017-05-20 09:53:30 +03:00
Lauri Kasanen
80e6afd335
Add two new trampoline test cases
2017-05-19 14:34:10 +03:00
Oliver Schmidt
11b01b908d
Merge pull request #424 from clbr/trampoline
...
Trampoline support
2017-05-18 16:29:34 +02:00
Lauri Kasanen
219b239a34
Adjustments in response to latest comments
2017-05-18 17:14:26 +03:00
Lauri Kasanen
4c05c46cd1
Remove RAM-trampoline array support
2017-05-18 16:11:39 +03:00
Lauri Kasanen
ca41af41c2
Rename pragma trampoline to wrapped-call, value to identifier
2017-05-16 20:10:24 +03:00
Lauri Kasanen
077b14ccfa
test/val/postincdec: Test for the final val value
2017-05-08 10:19:26 +03:00
Lauri Kasanen
7adcde1707
Add explicit postinc/dec testcase
2017-05-07 20:35:49 +03:00
Lauri Kasanen
9c86c03a96
Add test case
2017-05-02 20:43:41 +03:00
Greg King
1aab287189
Fixed the handling of "while (0) {}".
...
It's a corner case; but, conditional macroes might create it -- better safe than sorry.
2017-04-07 09:26:58 -04:00
Oliver Schmidt
e806515541
Removed workaround.
2017-04-04 15:53:14 +02:00
Oliver Schmidt
93193727be
Removed workaround.
2017-04-04 15:52:37 +02:00
Oliver Schmidt
cd27fef6a8
Removed workaround.
2017-04-04 15:52:01 +02:00
Oliver Schmidt
3789174162
Removed workaround.
2017-04-04 15:51:00 +02:00
Oliver Schmidt
14268510f5
Removed workaround.
2017-04-04 15:45:24 +02:00
Oliver Schmidt
233dd5062a
Merge pull request #389 from IrgendwerA8/stringimprovements
...
Optimization of string functions (size & speed).
2017-04-04 15:39:37 +02:00
Oliver Schmidt
5dbacb538e
Merge pull request #411 from pfusik/bss-name-regression
...
Fix regression of #pragma bss-name
2017-03-22 13:44:48 +01:00
Piotr Fusik
8e35a82c91
Fix regression of #pragma bss-name
...
Closes #409
2017-03-21 22:35:25 +01:00
Oliver Schmidt
5b3611265b
Revert to recursively expanded var.
...
4a6bca0b56
needed to move to a simply expanded variable but cc82cd9992
made that unnecessary again.
2017-03-21 20:54:55 +01:00
IrgendwerA8
cc82cd9992
Fixed addressing error for TSB/TSR and enabled tests again.
2017-03-20 21:53:07 +01:00
Oliver Schmidt
0851e3d694
Allow to control test Makefile output via QUIET (like libsrc).
2017-03-20 11:22:04 +01:00
Oliver Schmidt
50174d9860
Hide stdout of tests returning an exit code.
...
Now that we doubled our tests by running them for both 6502 and 65C02 Travis CI complains (again) about a too long build output. So let's reduce it by omitting the (useless) stdout of tests.
2017-03-19 20:32:23 +01:00
Oliver Schmidt
4a6bca0b56
Run test for the 65C02 code generator / runtime too.
...
Now that sim65's 65C02 support is actually functional we can run test for the 65C02 support in the compiler and the runtime.
We learn the hard way this is a good idea as there are tests failing when built with optimizations for the 65C02:
- val/compare7
- val/compare8
- val/compare9
- val/compare10
- val/or1
2017-03-19 20:07:19 +01:00
Oliver Schmidt
ff9b77b6cc
Shortened test subdir names.
2017-03-19 17:57:25 +01:00
Oliver Schmidt
66634ef683
Cleaned up test Makefiles.
2017-03-19 17:48:44 +01:00
Greg King
750a527100
Made C's sizeof operator work with initialized void variables.
...
Added regression tests that check cc65's handling of void variables.
2017-03-12 14:41:32 -04:00
Oliver Schmidt
a780df1fe1
Merge pull request #381 from pfusik/static-forward-decl
...
"static" forward declarations
2017-03-12 18:26:14 +01:00
Greg King
73261ea48f
Fixed a pointer test again -- but, it's better than in pull request #391 .
...
This time, the expression compares the pointer directly, instead of comparing the pointer's target. The new expression avoids an array underrun.
2017-03-11 15:11:15 -05:00
Christian Groessler
8a81f9c0c8
Fix line endings (CRLF -> LF) on all affected files.
2017-03-10 11:21:14 +01:00
Piotr Fusik
05d1b8072b
Add regression tests for duplicate globals with different linkage.
2017-03-09 21:18:48 +01:00
Piotr Fusik
6c3873316b
Add regression tests for duplicate global/static variables detected by the compiler.
2017-03-09 20:49:42 +01:00
Piotr Fusik
ce0cf85386
Add regression test for #204 .
2017-03-09 20:40:20 +01:00