Mark the ExtWarn for in-class initialization of static const float members as a GNU extension. Don't extend the scope of this extension to all literal types in C++0x mode.
llvm-svn: 140820
diff --git a/clang/test/CXX/class/class.static/class.static.data/p3.cpp b/clang/test/CXX/class/class.static/class.static.data/p3.cpp
index 72dbec7..51b93a2 100644
--- a/clang/test/CXX/class/class.static/class.static.data/p3.cpp
+++ b/clang/test/CXX/class/class.static/class.static.data/p3.cpp
@@ -12,8 +12,8 @@
static const int d;
static constexpr double e = 0.0; // ok
- static const double f = 0.0; // expected-warning {{accepted as an extension}}
- static char *const g = 0; // expected-warning {{accepted as an extension}}
+ static const double f = 0.0; // expected-warning {{extension}}
+ static char *const g = 0; // expected-error {{requires 'constexpr' specifier}}
static const NonLit h = NonLit(); // expected-error {{must be initialized out of line}}
};