Fixes Issue 9680 - Print main function and location in verbose mode.

Add test-case script by Kenji Hara.
Merge pull request #1732 from AndrejMitrovic/Fix9680

Issue 9680 - Print main function and location in verbose mode.