summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/auto-cxx98.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-10-12 19:26:40 +0000
committerDouglas Gregor <dgregor@apple.com>2011-10-12 19:26:40 +0000
commit205d0445529eb985a1485ff8e2a18908f75f3bb1 (patch)
tree1946bda6471b8cbf87608d10ead284d1c7a2c122 /clang/test/SemaCXX/auto-cxx98.cpp
parentde2ff3b64ec0eea6a3974f5001917baeed24ec10 (diff)
downloadbcm5719-llvm-205d0445529eb985a1485ff8e2a18908f75f3bb1.tar.gz
bcm5719-llvm-205d0445529eb985a1485ff8e2a18908f75f3bb1.zip
Switch diagnostic text from "C++0x" over to "C++11".
We'd also like for "C++11" or "c++11" to be used for the warning groups, but without removing the old warning flags. Patches welcome; I've run out of time to work on this today. llvm-svn: 141801
Diffstat (limited to 'clang/test/SemaCXX/auto-cxx98.cpp')
-rw-r--r--clang/test/SemaCXX/auto-cxx98.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/test/SemaCXX/auto-cxx98.cpp b/clang/test/SemaCXX/auto-cxx98.cpp
index 8d22469825c..6c401ba11a9 100644
--- a/clang/test/SemaCXX/auto-cxx98.cpp
+++ b/clang/test/SemaCXX/auto-cxx98.cpp
@@ -1,8 +1,8 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++98
void f() {
- auto int a; // expected-warning {{'auto' storage class specifier is redundant and incompatible with C++0x}}
- int auto b; // expected-warning {{'auto' storage class specifier is redundant and incompatible with C++0x}}
- auto c; // expected-warning {{C++0x extension}} expected-error {{requires an initializer}}
- static auto d = 0; // expected-warning {{C++0x extension}}
- auto static e = 0; // expected-warning {{C++0x extension}}
+ auto int a; // expected-warning {{'auto' storage class specifier is redundant and incompatible with C++11}}
+ int auto b; // expected-warning {{'auto' storage class specifier is redundant and incompatible with C++11}}
+ auto c; // expected-warning {{C++11 extension}} expected-error {{requires an initializer}}
+ static auto d = 0; // expected-warning {{C++11 extension}}
+ auto static e = 0; // expected-warning {{C++11 extension}}
}
OpenPOWER on IntegriCloud