blob: ae4386eaae71594432ab745c76830d4e618d0e1d [file] [log] [blame]
Douglas Gregor825faf72011-06-29 21:22:02 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Fariborz Jahanian4f9c9d62010-06-24 18:50:41 +00002
3// rdar: // 8125274
4static int a16[]; // expected-warning {{tentative array definition assumed to have one element}}
5
6void f16(void) {
7 extern int a16[];
8}
9
Douglas Gregor825faf72011-06-29 21:22:02 +000010
11// PR10013: Scope of extern declarations extend past enclosing block
12extern int PR10013_x;
13int 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
Rafael Espindola7581f322012-12-17 22:23:47 +000023static int test1_a[]; // expected-warning {{tentative array definition assumed to have one element}}
24extern int test1_a[];