// S : tags mstring todo $TAGS // S : expect --result valid // S : cc -o test.bc $CC_OPT $file // S : verify -o nofail:malloc $V_OPT test.bc // N : V : CC_OPT : V_OPT : TAGS : RESULT // V : sym : : --lamp symstring --symbolic : sym : valid // V : con : : --lamp constring : min : valid #include #include #include #include int main() { char buff[5] = "aabb"; char *str = __lamp_lift_str( buff ); char target = 'b'; char buffe[3] = "bb"; const char * expected = __lamp_lift_str( buffe ); const char * res = strchr( str, target ); assert( strcmp( res, expected ) == 0 ); }