commit | c81ca09830a95e532206dfaeeb12c25315c6fb1a | [log] [tgz] |
---|---|---|
author | Douglas Gregor <dgregor@apple.com> | Mon Apr 19 21:31:25 2010 +0000 |
committer | Douglas Gregor <dgregor@apple.com> | Mon Apr 19 21:31:25 2010 +0000 |
tree | 2be966074a81ebbf4a9bc22bb059dec44e6f125f | |
parent | 777346e7490cf4bed6ba6567760c5760a716f102 [diff] [blame] |
Disable the "'extern' variable has an initializer" warning in C++, since it makes sense there to have const extern variables. Fixes PR6495. llvm-svn: 101818
diff --git a/clang/test/SemaCXX/storage-class.cpp b/clang/test/SemaCXX/storage-class.cpp new file mode 100644 index 0000000..a31e67b --- /dev/null +++ b/clang/test/SemaCXX/storage-class.cpp
@@ -0,0 +1,2 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s +extern const int PR6495 = 42;