[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaTemplate / qualified-names-diag.cpp
blob06b94926c75fdb739a600354902d16b7e5d0ca0e
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++98 %s
3 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
5 namespace std {
6 template<typename T> class vector { }; // expected-note{{candidate function (the implicit copy assignment operator) not viable}}
7 #if __cplusplus >= 201103L // C++11 or later
8 // expected-note@-2 {{candidate function (the implicit move assignment operator) not viable}}
9 #endif
12 typedef int INT;
13 typedef float Real;
15 void test() {
16 using namespace std;
18 std::vector<INT> v1;
19 vector<Real> v2;
20 v1 = v2; // expected-error{{no viable overloaded '='}}