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 | fceea36501a441a3bf829fc83967f53fd82edfb8 (patch) | |
| tree | bf8837691c62e7507ce98902b6cd3cd21856255d /clang/test | |
| parent | 73519609d42f9939bbeded919d8b6fbf3b87bc7f (diff) | |
| download | bcm5719-llvm-fceea36501a441a3bf829fc83967f53fd82edfb8.tar.gz bcm5719-llvm-fceea36501a441a3bf829fc83967f53fd82edfb8.zip | |
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.
llvm-svn: 102066
Diffstat (limited to 'clang/test')
| -rw-r--r-- | clang/test/SemaCXX/storage-class.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/storage-class.cpp b/clang/test/SemaCXX/storage-class.cpp index 4025595de12..a2e206323a0 100644 --- a/clang/test/SemaCXX/storage-class.cpp +++ b/clang/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}; |

