For quick checking I don't know how we can reach here with an empty source, so test just checks the function directly. Fix #11758.