diff options
Diffstat (limited to 'clang/test/SemaTemplate/qualified-names-diag.cpp')
-rw-r--r-- | clang/test/SemaTemplate/qualified-names-diag.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/clang/test/SemaTemplate/qualified-names-diag.cpp b/clang/test/SemaTemplate/qualified-names-diag.cpp new file mode 100644 index 0000000..b2df47b --- /dev/null +++ b/clang/test/SemaTemplate/qualified-names-diag.cpp @@ -0,0 +1,16 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s + +namespace std { + template<typename T> class vector { }; // expected-note{{candidate}} +} + +typedef int INT; +typedef float Real; + +void test() { + using namespace std; + + std::vector<INT> v1; + vector<Real> v2; + v1 = v2; // expected-error{{no viable overloaded '='}} +} |