@Test
public void testUsedAnonymousStructIsNotRemoved() throws Exception {

  final String program = "const struct { float x; } a;\n"
      + "void main() {\n"
      + " gl_FragColor = vec4(a.x);\n"
      + "}\n";
  final TranslationUnit tu = ParseHelper.parse(program);
  final List<GlobalVariablesDeclarationReductionOpportunity> ops =
      GlobalVariablesDeclarationReductionOpportunities
      .findOpportunities(MakeShaderJobFromFragmentShader.make(tu),
          new ReducerContext(false, ShadingLanguageVersion.ESSL_100,
          new RandomWrapper(0), new IdGenerator()));
  assertEquals(0, ops.size());
}