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