@Test
public void testPopScope() throws Exception {

  // Regression test added due to bug where scope popping would lead to an exception.
  String program = "void foo(int x) { x; } void main() { }\n";
  TranslationUnit tu = ParseHelper.parse(program);
  ReductionOpportunities.getReductionOpportunities(MakeShaderJobFromFragmentShader.make(tu),
        new ReducerContext(false,
      ShadingLanguageVersion.ESSL_100,
      new RandomWrapper(0), new IdGenerator()), fileOps);
}