diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-04-19 22:34:40 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-04-19 22:34:40 +0000 |
commit | 63c323d7584e3d91549fae23fb30b426d3b19042 (patch) | |
tree | abbdd5140670584c78511840546256ad5b761d1b /test/SemaCXX/storage-class.cpp | |
parent | 41b1d6ba40a5c856f3d0bfed1b825154f87b6127 (diff) |
Only suppress the "extern variable has an initializer" warning when the extern entity being initialized is const.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101821 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/storage-class.cpp')
-rw-r--r-- | test/SemaCXX/storage-class.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/SemaCXX/storage-class.cpp b/test/SemaCXX/storage-class.cpp index a31e67be7e..4025595de1 100644 --- a/test/SemaCXX/storage-class.cpp +++ b/test/SemaCXX/storage-class.cpp @@ -1,2 +1,3 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s -extern const int PR6495 = 42; +extern const int PR6495a = 42; +extern int PR6495b = 42; // expected-warning{{'extern' variable has an initializer}} |