@Test
public void testNoInliningWithNameShadowing1() throws Exception {

  // We don't want to inline the "int x = x" initializer as it will lead to an identical program.
  final String program  = "void main() { int x; { int x = x; x; } }";
  final TranslationUnit tu = ParseHelper.parse(program);
  List<SimplifyExprReductionOpportunity> ops = InlineInitializerReductionOpportunities
      .findOpportunities(MakeShaderJobFromFragmentShader.make(tu), new ReducerContext(true,
          ShadingLanguageVersion.ESSL_100, new RandomWrapper(0), new IdGenerator()));
  assertEquals(0, ops.size());
}