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