1 // RUN: %clang_cc1 -fsyntax-only -verify %s 2 3 // rdar: // 8125274 4 static int a16[]; // expected-warning {{tentative array definition assumed to have one element}} 5 6 void f16(void) { 7 extern int a16[]; 8 } 9 10 11 // PR10013: Scope of extern declarations extend past enclosing block 12 extern int PR10013_x; 13 int PR10013(void) { 14 int *PR10013_x = 0; 15 { 16 extern int PR10013_x; 17 extern int PR10013_x; 18 } 19 20 return PR10013_x; // expected-warning{{incompatible pointer to integer conversion}} 21 } 22 23 static int test1_a[]; // expected-warning {{tentative array definition assumed to have one element}} 24 extern int test1_a[]; 25