Home | History | Annotate | Download | only in CodeGen
      1 // RUN: %clang_cc1 %s -o %t -emit-llvm -verify
      2 // expected-no-diagnostics
      3 // PR4289
      4 
      5 struct funcptr {
      6   int (*func)();
      7 };
      8 
      9 static int func(f)
     10   void *f;
     11 {
     12   return 0;
     13 }
     14 
     15 int
     16 main(int argc, char *argv[])
     17 {
     18   struct funcptr fp;
     19 
     20   fp.func = &func;
     21   fp.func = func;
     22 }
     23