@Test
public void testDoNotLeaveDefaultEmpty() throws Exception {

  final String prog = "void main() {"
      + "  switch(0) {"
      + "    default:"
      + "    1;"
      + "  }"
      + "}";
  final String expected = "void main() {"
      + "}";
  final TranslationUnit tu = ParseHelper.parse(prog);
  List<StmtReductionOpportunity> ops = StmtReductionOpportunities
      .findOpportunities(MakeShaderJobFromFragmentShader.make(tu), new ReducerContext(true,
          ShadingLanguageVersion.ESSL_310,
          new RandomWrapper(0), new IdGenerator()));
  assertEquals(1, ops.size());
  ops.get(0).applyReduction();
  CompareAsts.assertEqualAsts(expected, tu);
}