• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
5int main() {
6  int n;
7
8  const char * inc = @encode(int[]);
9  const char * vla = @encode(int[n]);
10}
11
12// PR3648
13int a[sizeof(@encode(int)) == 2 ? 1 : -1]; // Type is char[2]
14const char *B = @encode(int);
15char (*c)[2] = &@encode(int); // @encode is an lvalue
16
17char d[] = @encode(int);   // infer size.
18char e[1] = @encode(int);  // truncate
19char f[2] = @encode(int);  // fits
20char g[3] = @encode(int);  // zero fill
21
22