Regression test for the optimizing compiler, which used to do incorrect access checks on static calls when inlining.