freebsd-dev/test/SemaTemplate/qualified-names-diag.cpp
2009-10-14 18:03:49 +00:00

17 lines
310 B
C++

// RUN: clang-cc -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 '='}}
}