2009-03-24 10:24:46 +08:00
|
|
|
// RUN: clang-cc -fsyntax-only -verify %s
|
2009-03-19 08:39:20 +08:00
|
|
|
|
|
|
|
namespace std {
|
2009-10-01 05:46:01 +08:00
|
|
|
template<typename T> class vector { }; // expected-note{{candidate}}
|
2009-03-19 08:39:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
typedef int INT;
|
|
|
|
typedef float Real;
|
|
|
|
|
|
|
|
void test() {
|
|
|
|
using namespace std;
|
|
|
|
|
|
|
|
std::vector<INT> v1;
|
|
|
|
vector<Real> v2;
|
2009-05-21 19:50:50 +08:00
|
|
|
v1 = v2; // expected-error{{no viable overloaded '='}}
|
2009-03-19 08:39:20 +08:00
|
|
|
}
|