@Test
public void testProblematicDeclarationPreviousScope() throws Exception {

  final String original =
      "float f()\n"
          + "{"
          + "  float b;"
          + "  bool c;"
          + "  {\n"
          + "      vec2 GLF_merged2_0_1_1_1_1_1bc;\n"
          + "      b = 2.0;\n"
          + "      c = false;\n"
          + "  }\n"
          + "}\n";
  final TranslationUnit tu = ParseHelper.parse(original);
  List<VectorizationReductionOpportunity> ops = VectorizationReductionOpportunities
          .findOpportunities(MakeShaderJobFromFragmentShader.make(tu),
              new ReducerContext(false, ShadingLanguageVersion.GLSL_440,
      new ZeroCannedRandom(), new IdGenerator()));
  assertEquals(0, ops.size());
}