1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify %s 2*f4a2713aSLionel Sambuc // PR5515 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuc extern int a[]; 5*f4a2713aSLionel Sambuc int a[10]; 6*f4a2713aSLionel Sambuc extern int b[10]; 7*f4a2713aSLionel Sambuc int b[]; 8*f4a2713aSLionel Sambuc extern int c[1]; 9*f4a2713aSLionel Sambuc int c[] = {1,2}; // expected-error {{excess elements in array initializer}} 10*f4a2713aSLionel Sambuc 11*f4a2713aSLionel Sambuc int d[1][]; // expected-error {{array has incomplete element type 'int []'}} 12*f4a2713aSLionel Sambuc 13*f4a2713aSLionel Sambuc extern const int e[2]; // expected-note {{previous definition is here}} 14*f4a2713aSLionel Sambuc int e[] = { 1 }; // expected-error {{redefinition of 'e' with a different type: 'int []' vs 'const int [2]'}} 15