function.c revision 2565eeff7b0d2310fb2924ce96a54302b0dfa5af
1// RUN: clang %s -fsyntax-only -verify 2// PR1892 3void f(double a[restrict][5]); // should promote to restrict ptr. 4void f(double (* restrict a)[5]); 5 6int foo (__const char *__path); 7int foo(__const char *__restrict __file); 8 9void func(const char*); //expected-error{{previous declaration is here}} 10void func(char*); //expected-error{{conflicting types for 'func'}} 11 12void g(int (*)(const void **, const void **)); 13void g(int (*compar)()) { 14} 15 16