| Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| Eli Friedman | 153c33e | 2009-12-10 08:54:47 +0000 | [diff] [blame] | 2 | // PR5515 |
| 3 | |||||
| 4 | extern int a[]; | ||||
| 5 | int a[10]; | ||||
| 6 | extern int b[10]; | ||||
| 7 | int b[]; | ||||
| 8 | extern int c[1]; | ||||
| 9 | int c[] = {1,2}; // expected-error {{excess elements in array initializer}} | ||||