1 /** Tests many of the basic operators from each of the storage types to every other.
3 source_storage: static, register,
4 dest_storage: static, register,
9 /** Simple function that spoils sdcc's optimiser by hiding an assign.
12 spoilAssign({type} in)
18 testStorageTypes(void)
20 {source_storage} {type} source;
21 {dest_storage} {type} dest;
23 source = spoilAssign(17);
24 // Test compare against a const
27 dest = spoilAssign(126);
29 ASSERT(dest != source);
33 ASSERT(dest == source);
38 ASSERT(dest < source);
42 ASSERT(source < dest);