/* { dg-options "-DCE_EXTRACT_FUNCTIONS=g -DCE_EXPORT_SYMBOLS=f" }*/
int f(int x)
{
  return x;
}

struct AAA
{
  int a;
};

struct AAA* g(int x)
{
  static struct AAA aa;
  aa.a = x;
  return &aa;
}

/* { dg-final { scan-tree-dump "struct AAA\* g\(int x\)" } } */
