This commit adds a test that ensures that a cast in a static doesn't stop const promotion within the static.