Douglas Gregor | e625893 | 2009-03-19 00:39:20 +0000 | [diff] [blame] | 1 | // RUN: clang -fsyntax-only -verify %s |
2 | |||||
3 | namespace std { | ||||
4 | template<typename T> class vector { }; | ||||
5 | } | ||||
6 | |||||
7 | typedef int INT; | ||||
8 | typedef float Real; | ||||
9 | |||||
10 | void 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 | } |