// RUN: clang-cc %s -o %t -emit-llvm -verify
// PR4289

struct funcptr {
  int (*func)();
};

static int func(f)
  void *f;
{
  return 0;
}

int
main(int argc, char *argv[])
{
  struct funcptr fp;

  fp.func = &func;
  fp.func = func;
  return 0;
}

// RUN: clang-cc %s -o %t -emit-llvm -verify
// PR4289

struct funcptr {
  int (*func)();
};

static int func(f)
  void *f;
{
  return 0;
}

int
main(int argc, char *argv[])
{
  struct funcptr fp;

  fp.func = &func;
  fp.func = func;
}

Revert this, was a bug in my new warning code, not the test case.
Revert this, was a bug in my new warning code, not the test case.


git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@76690 91177308-0d34-0410-b5e6-96231b3b80d8
