source_storage: static, register,
dest_storage: static, register,
- type: char, int
+ type: char, int, long
*/
#include <testfwk.h>
/** 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;
// 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