@Test
public void testRemoveParam2() throws Exception {

  final String shader = "float foo(int a);"
      + "float foo(int a) {"
      + "  return 0.0;"
      + "}"
      + "void main() {"
      + "  foo(2.0);"
      + "}";
  final String expectedResult = "float foo();"
      + "float foo() {"
      + "  return 0.0;"
      + "}"
      + "void main() {"
      + "  foo();"
      + "}";
  final TranslationUnit tu = ParseHelper.parse(shader);
  List<RemoveUnusedParameterReductionOpportunity> opportunities =
      findOpportunities(tu, true);
  assertEquals(1, opportunities.size());
  opportunities.get(0).applyReduction();
  CompareAsts.assertEqualAsts(expectedResult, tu);
}