1
0
mirror of https://github.com/cc65/cc65.git synced 2024-10-31 20:06:11 +00:00
cc65/test/val
Bob Andrews 45bdeb62ad
Merge pull request #2070 from bbbradsmith/fix2060
RHS primary integer promotion must happen after loading the primary, not before
2023-05-03 23:57:19 +02:00
..
add1.c added tests as prepared by oliver 2014-09-25 21:38:34 +02:00
add2.c use uint16_t instead of magic ifdefs, leaving support for bit type in there incase we support it some day 2020-07-22 00:09:48 +02:00
add3.c added makefile and common include 2014-11-22 16:59:31 +01:00
add3a.c Removed executable bit. 2020-07-12 23:11:43 +02:00
add4.c added tests as prepared by oliver 2014-09-25 21:38:34 +02:00
add5.c Added a cc65 regression test for pointer and offset addition operations. 2016-01-01 11:39:55 -05:00
and1.c added tests as prepared by oliver 2014-09-25 21:38:34 +02:00
and2.c added tests as prepared by oliver 2014-09-25 21:38:34 +02:00
assign-shift-use1.c Renamed some testcases. 2022-09-30 09:41:54 +08:00
atoi-test.c move a bunch of tests from testcode/lib to test/val (and a failing one to test/todo) 2020-07-13 21:25:13 +02:00
binlit.c remove TABs which again slipped in.... 2020-12-25 07:16:26 +01:00
bitfield-1.c Renamed some testcases. 2022-09-30 09:41:54 +08:00
bitfield-char-1.c Renamed some testcases. 2022-09-30 09:41:54 +08:00
bitfield-enum.c Testcases for long bit-fields. 2022-03-03 16:14:26 +08:00
bitfield-packing-char.c Testcases for long bit-fields. 2022-03-03 16:14:26 +08:00
bitfield-packing-long.c Testcases for long bit-fields. 2022-03-03 16:14:26 +08:00
bitfield-packing.c Testcases for long bit-fields. 2022-03-03 16:14:26 +08:00
bitfield-plain.c Testcases for long bit-fields. 2022-03-03 16:14:26 +08:00
bitfield-signed.c Testcases for long bit-fields. 2022-03-03 16:14:26 +08:00
bitfield-union.c Add test of union of bit-field from mailing list 2020-08-17 09:54:31 +02:00
bool1.c added tests as prepared by oliver 2014-09-25 21:38:34 +02:00
boolean-call1.c Renamed some testcases. 2022-09-30 09:41:54 +08:00
bss-name-decl.c Fix regression of #pragma bss-name 2017-03-21 22:35:25 +01:00
bss-name.c Fix regression of #pragma bss-name 2017-03-21 22:35:25 +01:00
bug170.c Use C89 semantics for integer conversions 2020-08-15 19:14:31 +02:00
bug250.c Moved bug250.c to test/val as it is fixed. 2020-08-26 09:40:32 +08:00
bug263.c testcase for issue #263 2021-05-23 18:55:06 +02:00
bug327.c Fixed Issue #327. 2020-08-22 13:44:18 +02:00
bug367.c Fix for multiplication optimization issue #367 2019-04-02 16:34:22 +02:00
bug735.c Testcase added. 2018-10-16 09:45:30 +02:00
bug760.c Preprocessor directives can now appear in the argument list of function-like macro calls. 2022-07-26 21:10:38 +08:00
bug830.c Fix for #830 supplied by UvB 2019-04-25 15:19:53 +02:00
bug895.c bug895.c compliant token pasting syntax to remove warnings 2023-05-02 18:18:10 -04:00
bug897.c test for issue #897 2021-05-24 14:30:10 +02:00
bug975.c move (now working) tests to test/val 2020-07-21 19:24:39 +02:00
bug1047-bitfield-char.c Renamed a few testcases. 2022-09-18 22:29:41 +08:00
bug1050.c Add enum size test case for #1050 2020-08-02 01:18:28 +02:00
bug1071.c remove TABs which again slipped in.... 2020-12-25 07:16:26 +01:00
bug1075.c remove dangling spaces 2022-04-17 16:07:52 +02:00
bug1077.c move test for issue #1077 to test/val 2020-07-22 15:12:02 +02:00
bug1094-nested-init.c Renamed a few testcases. 2022-09-18 22:29:41 +08:00
bug1095-bitfield-signed.c Renamed a few testcases. 2022-09-18 22:29:41 +08:00
bug1108.c Made a regression test increment a variable after, instead of before, using it. 2020-07-20 17:16:11 -04:00
bug1139-bitfield-in-if.c Renamed a few testcases. 2022-09-18 22:29:41 +08:00
bug1143warn.c added test related to issue #1143 2020-08-18 00:40:29 +02:00
bug1178-struct-copy.c Renamed a few testcases. 2022-09-18 22:29:41 +08:00
bug1181-struct-field-null-cmp.c Renamed a few testcases. 2022-09-18 22:29:41 +08:00
bug1201.c added test related to issue #1201 2020-08-26 23:20:28 +02:00
bug1209-ind-goto-rev.c Moved one test case for #1209. 2021-04-06 22:20:39 +02:00
bug1211-ice-move-refs-1.c CS_MergeLabels: Keep labels referenced by data 2020-10-08 12:11:03 +02:00
bug1221.c test related to issue #1221 2020-09-24 00:08:36 +02:00
bug1222.c test related to issue #1222 2020-09-24 12:23:18 +02:00
bug1244.c test related to issue #1244 2020-09-23 23:57:36 +02:00
bug1245.c test related to issue #1245 2020-09-23 23:57:25 +02:00
bug1252.c test some more possible cases and move test into test/val 2022-08-28 03:43:54 +02:00
bug1263.c Fixed test case for Issue #1263. 2021-04-03 17:50:46 +02:00
bug1267-bitfield-typedef-signedness.c Renamed a few testcases. 2022-09-18 22:29:41 +08:00
bug1310.c Fixed a bug that pointer subtraction results from two absolute addresses are calculated as unsigned long. 2021-02-22 14:14:59 -05:00
bug1320.c Fixed code that caused a seg-fault after parsing a (deferred) post-count argument followed by a (nested) function-call argument. 2020-11-20 17:45:14 -05:00
bug1332-bitfield.c Renamed a few testcases. 2022-09-18 22:29:41 +08:00
bug1348.c Fixed the cc65 code that optimizes 16-bit compares when the high bytes are known to be equal. 2020-12-24 12:27:09 -05:00
bug1357-pp.c Renamed a few testcases. 2022-09-18 22:29:41 +08:00
bug1373.c Added test case for #pragma charmap. 2022-07-26 15:19:48 +08:00
bug1374.c Moved test for #1374. 2021-01-19 14:33:27 +01:00
bug1397.c (again) remove TABs 2021-05-13 18:12:12 +02:00
bug1408.c change line endings to unix style, should fix #1858 2022-09-22 20:29:57 +02:00
bug1431.c test for issue #1431 / pr #1424 2021-03-19 20:53:52 +01:00
bug1437.c Removed the non-existing-in-C "struct/union scope" for structs/unions. 2021-03-29 19:28:22 +02:00
bug1438.c remove dangling spaces 2022-04-17 16:07:52 +02:00
bug1451-struct-ptr-to-local.c change line endings to unix style, should fix #1858 2022-09-22 20:29:57 +02:00
bug1462-biefield-assign-1.c Renamed a few testcases. 2022-09-18 22:29:41 +08:00
bug1462-biefield-assign-2.c Renamed a few testcases. 2022-09-18 22:29:41 +08:00
bug1462-biefield-assign-3.c Renamed a few testcases. 2022-09-18 22:29:41 +08:00
bug1462-biefield-assign-4.c Fixed comments in test/val/bug1462-biefield-assign-4.c. 2022-09-29 18:23:41 +08:00
bug1504.c add test for issue #1504 2021-05-17 14:40:09 +02:00
bug1552.c remove dangling spaces 2022-04-17 16:07:52 +02:00
bug1562.c add test related tu issue #1562 2021-09-28 18:11:23 +02:00
bug1573.c Simple testcase for __LINE__, __FILE__ as well as #line. 2022-08-24 16:39:44 +08:00
bug1573.h Simple testcase for __LINE__, __FILE__ as well as #line. 2022-08-24 16:39:44 +08:00
bug1643.c change line endings to unix style, should fix #1858 2022-09-22 20:29:57 +02:00
bug1643.h change line endings to unix style, should fix #1858 2022-09-22 20:29:57 +02:00
bug1652-optimizer.c test related to issue #1652, shows regression broken by #1231 and the 2022-05-08 13:19:32 +02:00
bug1675-ub.c Testcase for #1675. 2022-02-18 15:20:01 +08:00
bug1675.c Testcase for #1675. 2022-02-18 15:20:01 +08:00
bug1690.c change line endings to unix style, should fix #1858 2022-09-22 20:29:57 +02:00
bug1696.c remove a bunch of TABs 2022-04-16 18:16:14 +02:00
bug1822-pptest.c change line endings to unix style, should fix #1858 2022-09-22 20:29:57 +02:00
bug1838.c Fixed trailing spaces in some testcases. 2022-09-29 18:23:32 +08:00
bug1847-struct-field-access.c Fixed trailing spaces in some testcases. 2022-09-29 18:23:32 +08:00
bug1853-inline-asm.c add test related to bug #1853 2022-09-17 14:42:18 +02:00
bug1891.c Fixed processing '\\' followed with a newline and line number output (-E) with it. 2022-11-02 14:09:15 +08:00
bug1933.c add missing newline 2022-11-28 06:34:05 +01:00
bug1936.c all good things are three 2022-12-11 12:29:11 +01:00
bug1941-shift-by-zero.c fix for #1941, taken from 22d435b689 2023-01-28 12:29:05 +01:00
bug1989.c Fix OptStackOps label migration case for toscmpbool, add test case 2023-02-17 23:48:32 -05:00
bug2060.c RHS primary integer promotion must happen after loading the primary, not before. See: #2060 2023-05-02 14:42:00 -04:00
bzero.c add extra underscore to _bzero, add a test for bzero/memset 2022-08-29 23:20:48 +02:00
cc65091020.c add missing newline to a bunch of files 2022-04-16 19:51:48 +02:00
cc65141002.c Removed executable bit. 2020-07-12 23:11:43 +02:00
cc65141011.c Removed executable bit. 2020-07-12 23:11:43 +02:00
cc65141022.c Removed executable bit. 2020-07-12 23:11:43 +02:00
cc65150311.c Fix some commonly made spelling errors in comments. 2022-02-21 15:44:31 -05:00
common.h added makefile and common include 2014-11-22 17:02:46 +01:00
compare1.c Changed most "backticks" (grave accents) into apostrophes. 2019-01-05 14:57:12 -05:00
compare2.c added tests as prepared by oliver 2014-09-25 21:38:34 +02:00
compare3.c added tests as prepared by oliver 2014-09-25 21:38:34 +02:00
compare4.c use uint16_t instead of magic ifdefs, leaving support for bit type in there incase we support it some day 2020-07-22 00:09:48 +02:00
compare5.c remove dangling spaces 2022-04-17 16:07:52 +02:00
compare6.c remove dangling spaces 2022-04-17 16:07:52 +02:00
compare7.c remove dangling spaces 2022-04-17 16:07:52 +02:00
compare8.c remove dangling spaces 2022-04-17 16:07:52 +02:00
compare9.c remove dangling spaces 2022-04-17 16:07:52 +02:00
compare10.c remove dangling spaces 2022-04-17 16:07:52 +02:00
compare-bool3.c Renamed some testcases. 2022-09-30 09:41:54 +08:00
computedgoto.c again, some TABs slipped into the code... 2019-04-30 18:21:13 +02:00
const-side-effect.c change line endings to unix style, should fix #1858 2022-09-22 20:29:57 +02:00
constexpr.c remove dangling spaces 2022-04-17 16:07:52 +02:00
counter.c change line endings to unix style, should fix #1858 2022-09-22 20:29:57 +02:00
counter.h change line endings to unix style, should fix #1858 2022-09-22 20:29:57 +02:00
cq4.c remove dangling spaces 2022-04-17 16:07:52 +02:00
cq9.c remote TABs in doc/ and test/ 2019-02-12 22:50:49 +01:00
cq22.c remove dangling spaces 2022-04-17 16:07:52 +02:00
cq25.c remove dangling spaces 2022-04-17 16:07:52 +02:00
cq26.c remove dangling spaces 2022-04-17 16:07:52 +02:00
cq61.c remove dangling spaces 2022-04-17 16:07:52 +02:00
cq71.c remove dangling spaces 2022-04-17 16:07:52 +02:00
cq72.c remove dangling spaces 2022-04-17 16:07:52 +02:00
cq81.c remove dangling spaces 2022-04-17 16:07:52 +02:00
cq84.c remove dangling spaces 2022-04-17 16:07:52 +02:00
cq85.c remove dangling spaces 2022-04-17 16:07:52 +02:00
cq86.c remove dangling spaces 2022-04-17 16:07:52 +02:00
cq88.c remove dangling spaces 2022-04-17 16:07:52 +02:00
cq241.c remove dangling spaces 2022-04-17 16:07:52 +02:00
cq243.c remove dangling spaces 2022-04-17 16:07:52 +02:00
cq244.c remove dangling spaces 2022-04-17 16:07:52 +02:00
cq626.c remove dangling spaces 2022-04-17 16:07:52 +02:00
cq714.c remove dangling spaces 2022-04-17 16:07:52 +02:00
cq714b.c remove dangling spaces 2022-04-17 16:07:52 +02:00
cq715.c remove dangling spaces 2022-04-17 16:07:52 +02:00
cq757.c remote TABs in doc/ and test/ 2019-02-12 22:50:49 +01:00
cq7813.c remove dangling spaces 2022-04-17 16:07:52 +02:00
decl-extern-shadow.c Renamed several tests. 2022-11-05 18:30:02 +08:00
decl-mixed-specifiers.c Fixed support for storage class specifiers after type specifiers. 2022-11-03 21:46:42 +08:00
decl-static-extern.c Renamed several tests. 2022-11-05 18:30:02 +08:00
decl-static-fwd.c Renamed several tests. 2022-11-05 18:30:02 +08:00
div-char-char.c tests for issue #169 2020-07-09 16:05:57 +02:00
div-common.h tests for issue #169 2020-07-09 16:05:57 +02:00
div-int-int.c tests for issue #169 2020-07-09 16:05:57 +02:00
div-long-long.c tests for issue #169 2020-07-09 16:05:57 +02:00
duffs-device.c remove dangling spaces 2022-04-17 16:07:52 +02:00
for-nested.c Renamed some testcases. 2022-09-30 09:41:54 +08:00
for.c added tests as prepared by oliver 2014-09-25 21:38:34 +02:00
jmp-callax.c again, some TABs slipped into the code... 2019-04-30 18:21:13 +02:00
lib_common_atoi.c Added further optimizations and unit tests. 2017-03-05 02:09:12 +01:00
lib_common_ctype.c remove dangling spaces 2022-04-17 16:07:52 +02:00
lib_common_memmove.c remove dangling spaces 2022-04-17 16:07:52 +02:00
lib_common_mulxx.c remove dangling spaces 2022-04-17 16:07:52 +02:00
lib_common_strcat.c remove dangling spaces 2022-04-17 16:07:52 +02:00
lib_common_strchr.c remove dangling spaces 2022-04-17 16:07:52 +02:00
lib_common_strcspn.c remove dangling spaces 2022-04-17 16:07:52 +02:00
lib_common_strncat.c remove dangling spaces 2022-04-17 16:07:52 +02:00
lib_common_strol.c Added further optimizations and unit tests. 2017-03-05 02:09:12 +01:00
lib_common_strrchr.c remove dangling spaces 2022-04-17 16:07:52 +02:00
lib_common_strspn.c remove dangling spaces 2022-04-17 16:07:52 +02:00
lib_common_strtoul.c Added further optimizations and unit tests. 2017-03-05 02:09:12 +01:00
lz4.c remote TABs in doc/ and test/ 2019-02-12 22:50:49 +01:00
Makefile "cat" result to console on failure (only on *nix right now) 2022-08-23 11:56:05 +02:00
mult1.c Fixed some testcases. 2022-09-18 22:29:01 +08:00
opsize.c change line endings to unix style, should fix #1858 2022-09-22 20:29:57 +02:00
or1.c remove dangling spaces 2022-04-17 16:07:52 +02:00
pointed-array.c Removed some trailing whitespace; and, expanded a tab. 2015-07-01 10:09:11 -04:00
pointer1.c added tests as prepared by oliver 2014-09-25 21:38:34 +02:00
postdec-8-8.c remove dangling spaces 2022-04-17 16:07:52 +02:00
postdec-8-16.c remove dangling spaces 2022-04-17 16:07:52 +02:00
postdec-16-8.c remove dangling spaces 2022-04-17 16:07:52 +02:00
postdec-16-16.c remove dangling spaces 2022-04-17 16:07:52 +02:00
postinc-8-8.c remove dangling spaces 2022-04-17 16:07:52 +02:00
postinc-8-16.c remove dangling spaces 2022-04-17 16:07:52 +02:00
postinc-16-8.c remove dangling spaces 2022-04-17 16:07:52 +02:00
postinc-16-16.c remove dangling spaces 2022-04-17 16:07:52 +02:00
postincdec.c remote TABs in doc/ and test/ 2019-02-12 22:50:49 +01:00
ppshift.c Fixed bitwise-shift in PP. 2022-11-13 16:32:41 +08:00
pptest1.c reworked pptest1/4/5 into executable tests and moved to test/val 2020-07-21 14:58:15 +02:00
pptest3.c reworked pptest3 into an exectutable test and moved to test/val 2020-07-21 15:30:35 +02:00
pptest4.c remove dangling spaces 2022-04-17 16:07:52 +02:00
pptest5.c remove dangling spaces 2022-04-17 16:07:52 +02:00
pr1102.c added a test related to pr#1102 - we can now return structs by value when they are max. 4 bytes 2020-07-21 21:04:41 +02:00
pr1110a.c added tests related to pr #1110 2020-07-22 15:52:04 +02:00
pr1423.c remove dangling spaces 2022-04-17 16:07:52 +02:00
pr1425.c test related to pr #1425 2021-03-20 00:23:12 +01:00
pr1461.c added test for issue #1461 2021-04-28 14:21:48 +02:00
pr1800.c test related to pr #1800 2022-07-28 01:50:54 +02:00
pr1833.c change line endings to unix style, should fix #1858 2022-09-22 20:29:57 +02:00
predec-8-8.c remove dangling spaces 2022-04-17 16:07:52 +02:00
predec-8-16.c remove dangling spaces 2022-04-17 16:07:52 +02:00
predec-16-8.c remove dangling spaces 2022-04-17 16:07:52 +02:00
predec-16-16.c remove dangling spaces 2022-04-17 16:07:52 +02:00
preinc-8-8.c remove dangling spaces 2022-04-17 16:07:52 +02:00
preinc-8-16.c remove dangling spaces 2022-04-17 16:07:52 +02:00
preinc-16-8.c remove dangling spaces 2022-04-17 16:07:52 +02:00
preinc-16-16.c remove dangling spaces 2022-04-17 16:07:52 +02:00
ptrfunc.c remove ifdef magic 2020-07-22 00:21:23 +02:00
rand.c remove TABs which again slipped in.... 2020-12-25 07:16:26 +01:00
rotate1.c added tests as prepared by oliver 2014-09-25 21:38:34 +02:00
rotate2.c added tests as prepared by oliver 2014-09-25 21:38:34 +02:00
rotate3.c use uint16_t instead of magic ifdefs, leaving support for bit type in there incase we support it some day 2020-07-22 00:09:48 +02:00
rotate4.c use uint16_t instead of magic ifdefs, leaving support for bit type in there incase we support it some day 2020-07-22 00:09:48 +02:00
rotate5.c use uint16_t instead of magic ifdefs, leaving support for bit type in there incase we support it some day 2020-07-22 00:09:48 +02:00
rotate6.c use uint16_t instead of magic ifdefs, leaving support for bit type in there incase we support it some day 2020-07-22 00:09:48 +02:00
rotate7.c use uint16_t instead of magic ifdefs, leaving support for bit type in there incase we support it some day 2020-07-22 00:09:48 +02:00
rotate8.c Added a regression test program for the changes in the right-shift optimizer. 2015-12-14 11:46:30 -05:00
shift-test.c move a bunch of tests from testcode/lib to test/val (and a failing one to test/todo) 2020-07-13 21:25:13 +02:00
signal-test.c some tweaks to the moved tests to make them more suitable for automatic testing 2020-07-13 21:26:07 +02:00
snprintf-test.c some tweaks to the moved tests to make them more suitable for automatic testing 2020-07-13 21:26:07 +02:00
staticassert.c Added support for _Static_assert in unions. 2022-11-03 21:46:41 +08:00
strncmp-test.c some tweaks to the moved tests to make them more suitable for automatic testing 2020-07-13 21:26:07 +02:00
strnicmp-test.c remove dangling spaces 2022-04-17 16:07:52 +02:00
strpbrk-test.c some tweaks to the moved tests to make them more suitable for automatic testing 2020-07-13 21:26:07 +02:00
strtol-test.c move a bunch of tests from testcode/lib to test/val (and a failing one to test/todo) 2020-07-13 21:25:13 +02:00
strtoul-test.c move a bunch of tests from testcode/lib to test/val (and a failing one to test/todo) 2020-07-13 21:25:13 +02:00
struct1.c added tests as prepared by oliver 2014-09-25 21:38:34 +02:00
struct-anon1.c Renamed a few testcases. 2022-09-18 22:29:41 +08:00
struct-anon2.c Renamed a few testcases. 2022-09-18 22:29:41 +08:00
struct-by-value.c Revert "Revert "Forbid 3-byte struct pass/return by value, document struct value pass/return"" 2023-05-03 20:02:12 +02:00
struct-returned.c Renamed a few testcases. 2022-09-18 22:29:41 +08:00
sub1.c Fix some commonly made spelling errors in comments. 2022-02-21 15:44:31 -05:00
sub2.c Fix some commonly made spelling errors in comments. 2022-02-21 15:44:31 -05:00
switch1.c added tests as prepared by oliver 2014-09-25 21:38:34 +02:00
switch2.c remove dangling spaces 2022-04-17 16:07:52 +02:00
time-test.c remove dangling spaces 2022-04-17 16:07:52 +02:00
time.c Increased consistency. 2018-08-02 15:45:57 +02:00
trampoline-params.c Changed empty parameter lists into (void) lists on functions with asm() statements. 2019-07-16 13:16:02 -04:00
trampoline-varargs.c Changed empty parameter lists into (void) lists on functions with asm() statements. 2019-07-16 13:16:02 -04:00
trampoline.c Changed empty parameter lists into (void) lists on functions with asm() statements. 2019-07-16 13:16:02 -04:00
type-cast-to-char.c Renamed some testcases. 2022-09-30 09:41:54 +08:00
type-char-promote.c Renamed some testcases. 2022-09-30 09:41:54 +08:00
uneval.c change line endings to unix style, should fix #1858 2022-09-22 20:29:57 +02:00
unittest.h Added further optimizations and unit tests. 2017-03-05 02:09:12 +01:00
void-size1.c Made C's sizeof operator work with initialized void variables. 2017-03-12 14:41:32 -04:00
while.c Fixed the handling of "while (0) {}". 2017-04-07 09:26:58 -04:00
xor.c remove dangling spaces 2022-04-17 16:07:52 +02:00