You should also test

return /abc/;

Which should not be a warning.