1 // RUN: %clang_cc1 -triple=i686-apple-darwin9 -emit-llvm -o %t %s 2 // RUN: grep -e "\^i" %t | count 1 3 // RUN: grep -e "\[0i\]" %t | count 1 4 5 int main() { 6 int n; 7 8 const char * inc = @encode(int[]); 9 const char * vla = @encode(int[n]); 10 } 11 12 // PR3648 13 int a[sizeof(@encode(int)) == 2 ? 1 : -1]; // Type is char[2] 14 const char *B = @encode(int); 15 char (*c)[2] = &@encode(int); // @encode is an lvalue 16 17 char d[] = @encode(int); // infer size. 18 char e[1] = @encode(int); // truncate 19 char f[2] = @encode(int); // fits 20 char g[3] = @encode(int); // zero fill 21 22