Test statement that generates both warning *and* error