@Test
public void testRemoveUnusedLiveCodeDecl() throws Exception {

  final String program = "void main() {\n"
      + "  int GLF_live0c = 3;\n"
      + "}\n";
  final String reducedProgram = "void main() {\n"
      + "  int ;\n"
      + "}\n";
  final TranslationUnit tu = ParseHelper.parse(program);
  List<VariableDeclReductionOpportunity> ops = VariableDeclReductionOpportunities
      .findOpportunities(MakeShaderJobFromFragmentShader.make(tu),
          new ReducerContext(false, ShadingLanguageVersion.ESSL_100,
          new RandomWrapper(0), new IdGenerator()));
  assertEquals(1, ops.size());
  ops.get(0).applyReduction();
  CompareAsts.assertEqualAsts(reducedProgram, tu);
}