Add :noinline to prevent inlining. Fixes #9212
Add @noinline and more tests
Merge pull request #9291 from JuliaLang/teh/warnonce

Add :noinline to prevent inlining. Fixes #9212