1 // RUN: %clang_cc1 -emit-llvm %s -o %t
3 int A
[10] = { 1,2,3,4,5 };
7 void foo(void) { x
[0] = 1; }
9 void bar(void) { x
[0] = 1; }
15 int latin_ptr2len (char *p
);
16 int (*mb_ptr2len
) (char *p
) = latin_ptr2len
;
19 char string
[8] = "string"; // extend init
20 char string2
[4] = "string"; // truncate init
24 static char *bufptr
= buf
;
26 return c
? buf
: bufptr
;
31 void booltest2(void) {
32 static _Bool booltest3
= 4;
38 // References to enums.
43 int c
[] = { EnumA
, EnumB
};
46 int d
[] = { EnumA
| EnumB
};