@Test
public void testDeadBasicReturnsPickedUp() throws Exception {

  final String program = "void GLF_dead1_f() {\n"
        + "  if (true) {"
        + "    return;"
        + "  }"
        + "  return;"
        + "}"
        + "void main() {"
        + "  if (false) {"
        + "    GLF_dead1_f();"
        + "  }"
        + "}";
  final TranslationUnit tu = ParseHelper.parse(program);
  final List<StmtReductionOpportunity> ops = StmtReductionOpportunities.findOpportunities(
        MakeShaderJobFromFragmentShader.make(tu),
        new ReducerContext(false, ShadingLanguageVersion.ESSL_300,
            new RandomWrapper(0), new IdGenerator()));
  assertEquals(3, ops.size());
}