@Test
public void testCleanWithGlobals() throws Exception {

  final String program = ""
          + "int g1;"
          + "const int g2 = g1;"
          + "void main() {"
          + "}";
  final String expectedProgram = ""
          + "int g1;"
          + "int g2;"
          + "void main() {"
          + "  g2 = g1;"
          + "}";
  final TranslationUnit tu = ParseHelper.parse(program);
  ConstCleaner.clean(tu);
  CompareAsts.assertEqualAsts(expectedProgram, tu);
}