@Test
public void testRemoveReturnsInIf() throws Exception {

  final String program = "layout(location = 0) out vec4 color;\n"
      + "int foo() {\n"
      + "  if (true) {\n"
      + "    return 1;\n"
      + "  } else {\n"
      + "    return 2;\n"
      + "  }\n"
      + "  return 0;\n"
      + "}\n";
  final TranslationUnit tu = ParseHelper.parse(program);
  final List<StmtReductionOpportunity> ops = StmtReductionOpportunities.findOpportunities(
      MakeShaderJobFromFragmentShader.make(tu),
      new ReducerContext(true, ShadingLanguageVersion.ESSL_300, new RandomWrapper(0),
          new IdGenerator()));
  assertTrue(ops.size() > 0);
}