diff options
author | Douglas Gregor <dgregor@apple.com> | 2010-04-19 21:31:25 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2010-04-19 21:31:25 +0000 |
commit | 41b1d6ba40a5c856f3d0bfed1b825154f87b6127 (patch) | |
tree | 85a89f350763c98151828958f0cd19f75d396f19 /test/SemaCXX/storage-class.cpp | |
parent | 8d8ab749f6f8bb63ea2cd2b589c0f050b67fc5cc (diff) |
Disable the "'extern' variable has an initializer" warning in C++,
since it makes sense there to have const extern variables. Fixes
PR6495.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101818 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/storage-class.cpp')
-rw-r--r-- | test/SemaCXX/storage-class.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/SemaCXX/storage-class.cpp b/test/SemaCXX/storage-class.cpp new file mode 100644 index 0000000000..a31e67be7e --- /dev/null +++ b/test/SemaCXX/storage-class.cpp @@ -0,0 +1,2 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s +extern const int PR6495 = 42; |