Steve Naroff | 2565eef | 2008-01-29 18:58:14 +0000 | [diff] [blame^] | 1 | // RUN: clang %s -fsyntax-only -verify |
Chris Lattner | 529bd02 | 2008-01-02 22:50:48 +0000 | [diff] [blame] | 2 | // PR1892 |
| 3 | void f(double a[restrict][5]); // should promote to restrict ptr. |
| 4 | void f(double (* restrict a)[5]); |
| 5 | |
Steve Naroff | ba03eda | 2008-01-29 00:15:50 +0000 | [diff] [blame] | 6 | int foo (__const char *__path); |
| 7 | int foo(__const char *__restrict __file); |
| 8 | |
Steve Naroff | 2565eef | 2008-01-29 18:58:14 +0000 | [diff] [blame^] | 9 | void func(const char*); //expected-error{{previous declaration is here}} |
| 10 | void func(char*); //expected-error{{conflicting types for 'func'}} |
| 11 | |
Chris Lattner | 1adb883 | 2008-01-14 05:45:46 +0000 | [diff] [blame] | 12 | void g(int (*)(const void **, const void **)); |
| 13 | void g(int (*compar)()) { |
| 14 | } |
| 15 | |