summaryrefslogtreecommitdiffstats
path: root/clang/test/FixIt/fixit-cxx0x.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2011-09-29 23:18:34 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2011-09-29 23:18:34 +0000
commit256336d9ab6dc277df8c49704e9900146cea7f69 (patch)
treea759775273ec4c903d8157bbe29d5ba1f5c070be /clang/test/FixIt/fixit-cxx0x.cpp
parent82d4a2b91f3fe7ae5937e361aba1df1b882c3de2 (diff)
downloadbcm5719-llvm-256336d9ab6dc277df8c49704e9900146cea7f69.tar.gz
bcm5719-llvm-256336d9ab6dc277df8c49704e9900146cea7f69.zip
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
Diffstat (limited to 'clang/test/FixIt/fixit-cxx0x.cpp')
-rw-r--r--clang/test/FixIt/fixit-cxx0x.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/test/FixIt/fixit-cxx0x.cpp b/clang/test/FixIt/fixit-cxx0x.cpp
index 2addad4696e..8c404b66119 100644
--- a/clang/test/FixIt/fixit-cxx0x.cpp
+++ b/clang/test/FixIt/fixit-cxx0x.cpp
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 -verify -std=c++0x %s
// RUN: cp %s %t
-// RUN: not %clang_cc1 -x c++ -std=c++0x -Werror -fixit %t
+// RUN: not %clang_cc1 -x c++ -std=c++0x -fixit %t
// RUN: %clang_cc1 -Wall -pedantic -x c++ -std=c++0x %t
/* This is a test of the various code modification hints that only
@@ -53,9 +53,7 @@ namespace Constexpr {
#endif
struct S {
- static const double d = 0.0; // expected-warning {{accepted as an extension}}
- // -> constexpr static const double d = 0.0;
- static char *const p = 0; // expected-warning {{accepted as an extension}}
+ static char *const p = 0; // expected-error {{requires 'constexpr' specifier}}
// -> constexpr static char *const p = 0;
};
}
OpenPOWER on IntegriCloud