diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-12-09 21:39:38 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-12-09 21:39:38 +0000 |
commit | 3acd9aaa4ddd14afecb4f1c02ca6f585a6d51849 (patch) | |
tree | d1d308e96238e9f98c2d23c7196d4deb68c07cba /test/Parser/cxx-extern-c-array.cpp | |
parent | 39406b1395f69341c045e863a6620310abdc55b6 (diff) |
Fixes a bogus error when declaring an extern "C" array.
(fixes radar 7457109).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90986 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-extern-c-array.cpp')
-rw-r--r-- | test/Parser/cxx-extern-c-array.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Parser/cxx-extern-c-array.cpp b/test/Parser/cxx-extern-c-array.cpp new file mode 100644 index 0000000000..1a04fa05c2 --- /dev/null +++ b/test/Parser/cxx-extern-c-array.cpp @@ -0,0 +1,7 @@ +// RUN: clang-cc -fsyntax-only -verify %s + +extern "C" int myarray[]; +int myarray[12] = {0}; + +extern "C" int anotherarray[][3]; +int anotherarray[2][3] = {1,2,3,4,5,6}; |