blob: 4bc8bdfc9a84e81afdca14bde246fe1328cb2cf9 [file] [log] [blame]
Daniel Dunbard7d5f022009-03-24 02:24:46 +00001// RUN: clang-cc -fsyntax-only -verify %s
Douglas Gregore6258932009-03-19 00:39:20 +00002
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 Gregor969c6892009-04-01 15:47:24 +000015 v1 = v2; // expected-error{{incompatible type assigning 'vector<Real>', expected 'std::vector<INT>'}}
Douglas Gregore6258932009-03-19 00:39:20 +000016}