2008-01-30 02:58:14 +08:00
|
|
|
// RUN: clang %s -fsyntax-only -verify
|
2008-01-03 06:50:48 +08:00
|
|
|
// PR1892
|
|
|
|
void f(double a[restrict][5]); // should promote to restrict ptr.
|
|
|
|
void f(double (* restrict a)[5]);
|
|
|
|
|
2008-01-29 08:15:50 +08:00
|
|
|
int foo (__const char *__path);
|
|
|
|
int foo(__const char *__restrict __file);
|
|
|
|
|
2008-01-30 02:58:14 +08:00
|
|
|
void func(const char*); //expected-error{{previous declaration is here}}
|
|
|
|
void func(char*); //expected-error{{conflicting types for 'func'}}
|
|
|
|
|
2008-01-14 13:45:46 +08:00
|
|
|
void g(int (*)(const void **, const void **));
|
|
|
|
void g(int (*compar)()) {
|
|
|
|
}
|
|
|
|
|