summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/cxx1z-decomposition.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaCXX/cxx1z-decomposition.cpp')
-rw-r--r--clang/test/SemaCXX/cxx1z-decomposition.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaCXX/cxx1z-decomposition.cpp b/clang/test/SemaCXX/cxx1z-decomposition.cpp
index 8b5fd6809bb..f174c79e595 100644
--- a/clang/test/SemaCXX/cxx1z-decomposition.cpp
+++ b/clang/test/SemaCXX/cxx1z-decomposition.cpp
@@ -78,7 +78,7 @@ template <class T> void dependent_foreach(T t) {
struct PR37352 {
int n;
- void f() { static auto [a] = *this; } // expected-error {{cannot be declared 'static'}}
+ void f() { static auto [a] = *this; } // expected-warning {{C++2a extension}}
};
namespace instantiate_template {
OpenPOWER on IntegriCloud