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 | 26de2e594bfa8226dbcd19a3448363ec6bdac550 (patch) | |
tree | 48a2fed86f638505b6ab8ef54849277cca048cc2 /clang/test/Parser/cxx-extern-c-array.cpp | |
parent | 493b882f8011212f219dc48c046d550d689e404e (diff) | |
download | bcm5719-llvm-26de2e594bfa8226dbcd19a3448363ec6bdac550.tar.gz bcm5719-llvm-26de2e594bfa8226dbcd19a3448363ec6bdac550.zip |
Fixes a bogus error when declaring an extern "C" array.
(fixes radar 7457109).
llvm-svn: 90986
Diffstat (limited to 'clang/test/Parser/cxx-extern-c-array.cpp')
-rw-r--r-- | clang/test/Parser/cxx-extern-c-array.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Parser/cxx-extern-c-array.cpp b/clang/test/Parser/cxx-extern-c-array.cpp new file mode 100644 index 00000000000..1a04fa05c24 --- /dev/null +++ b/clang/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}; |