Fix error on functions ending with @goto.
Also fix error on functions ending with @label. Test.
Merge pull request #7312 from JuliaLang/dcj/tailgoto

Fix error on functions ending with @goto.