diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-05-22 19:52:55 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2019-05-22 19:52:55 +0000 |
commit | 13bf9892dc2a37a4c4a0fcce8cb79ed8798a236f (patch) | |
tree | 7de36123533f812e0fcea10b020e7eb2a1c8556b /clang/test/SemaCXX/cxx1z-decomposition.cpp | |
parent | 6dbf4a86a7c8d2a63aebb96c3e7d1ac477a40d9e (diff) | |
download | bcm5719-llvm-13bf9892dc2a37a4c4a0fcce8cb79ed8798a236f.tar.gz bcm5719-llvm-13bf9892dc2a37a4c4a0fcce8cb79ed8798a236f.zip |
Part of P1091R3: permit structured bindings to be declared 'static' and
'thread_local' in C++20.
llvm-svn: 361424
Diffstat (limited to 'clang/test/SemaCXX/cxx1z-decomposition.cpp')
-rw-r--r-- | clang/test/SemaCXX/cxx1z-decomposition.cpp | 2 |
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 { |