blob: 74e61bbb2749f9f227354f8473fab411a60ea544 [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;
Douglas Gregor24c46b32009-03-19 04:25:59 +000015 v1 = v2; // expected-error{{incompatible type assigning 'vector<Real>' (aka 'class std::vector<float>'), expected 'std::vector<INT>' (aka 'class std::vector<int>')}}
Douglas Gregore6258932009-03-19 00:39:20 +000016}