blob: 02bdf16b2ba4b46d99dedb347c51ba565e145466 [file] [log] [blame]
Douglas Gregore6258932009-03-19 00:39:20 +00001// RUN: clang -fsyntax-only -verify %s
2
3namespace std {
4 template<typename T> class vector { };
5}
6
7typedef int INT;
8typedef float Real;
9
10void test() {
11 using namespace std;
12
13 std::vector<INT> v1;
14 vector<Real> v2;
15 v1 = v2; // expected-error{{incompatible type assigning 'vector<Real>' (aka 'class vector<float>'), expected 'std::vector<INT>' (aka 'class vector<int>')}}
16}