diff options
Diffstat (limited to 'clang/test/CodeGenObjC/encode-test-3.m')
| -rw-r--r-- | clang/test/CodeGenObjC/encode-test-3.m | 11 | 
1 files changed, 11 insertions, 0 deletions
| diff --git a/clang/test/CodeGenObjC/encode-test-3.m b/clang/test/CodeGenObjC/encode-test-3.m new file mode 100644 index 00000000000..8bd4421d6c1 --- /dev/null +++ b/clang/test/CodeGenObjC/encode-test-3.m @@ -0,0 +1,11 @@ +// RUN: clang -triple=i686-apple-darwin9 -fnext-runtime -emit-llvm -o %t %s && +// RUN: grep -e "\^i" %t | count 1 && +// RUN: grep -e "\[0i\]" %t | count 1 + +int main() +{ +  int n; +   +  const char * inc = @encode(int[]); +  const char * vla = @encode(int[n]); +} | 

