blob: 74e61bbb2749f9f227354f8473fab411a60ea544 [file] [log] [blame]
// RUN: clang -fsyntax-only -verify %s
namespace std {
template<typename T> class vector { };
}
typedef int INT;
typedef float Real;
void test() {
using namespace std;
std::vector<INT> v1;
vector<Real> v2;
v1 = v2; // expected-error{{incompatible type assigning 'vector<Real>' (aka 'class std::vector<float>'), expected 'std::vector<INT>' (aka 'class std::vector<int>')}}
}