X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=support%2Fregression%2Ftests%2Fstorage.c;h=7b4c4fa7772bd593ceba1e2bc8bc5d92a2b66a5e;hb=ab3443d8c6013ece89bcb77ee15517cd2a282c39;hp=9a8b70056d02a6ae01a3515da3b76b498f3d3f88;hpb=afff3c43107e27a024275fc643ca574c5c27c220;p=fw%2Fsdcc diff --git a/support/regression/tests/storage.c b/support/regression/tests/storage.c index 9a8b7005..7b4c4fa7 100644 --- a/support/regression/tests/storage.c +++ b/support/regression/tests/storage.c @@ -2,19 +2,19 @@ source_storage: static, register, dest_storage: static, register, - type: char, int + type: char, int, long */ #include /** Simple function that spoils sdcc's optimiser by hiding an assign. */ -static {type} +{type} spoilAssign({type} in) { return in; } -static void +void testStorageTypes(void) { {source_storage} {type} source; @@ -24,8 +24,8 @@ testStorageTypes(void) // Test compare against a const ASSERT(source == 17); - dest = spoilAssign(134); - ASSERT(dest == 134); + dest = spoilAssign(126); + ASSERT(dest == 126); ASSERT(dest != source); // Test assignment