diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-04-22 14:36:26 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-04-22 14:36:26 +0000 |
commit | 66dd9394994654b5af2c62ed24f311432bacede5 (patch) | |
tree | f29812b6e320315bed17540c5dcf608051c4956d /test/SemaCXX/storage-class.cpp | |
parent | 050b78acf11900cb8c47563376200a1d7bd97f59 (diff) |
When checking whether to diagnose an initialized "extern" variable,
look for the const on the base type rather than on the top-level
type. Fixes PR6495 properly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102066 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/storage-class.cpp')
-rw-r--r-- | test/SemaCXX/storage-class.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/SemaCXX/storage-class.cpp b/test/SemaCXX/storage-class.cpp index 4025595de1..a2e206323a 100644 --- a/test/SemaCXX/storage-class.cpp +++ b/test/SemaCXX/storage-class.cpp @@ -1,3 +1,4 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s extern const int PR6495a = 42; extern int PR6495b = 42; // expected-warning{{'extern' variable has an initializer}} +extern const int PR6495c[] = {42,43,44}; |