blob: b2df47bfff4cef7f4673d49ce981af4481f28ea8 [file] [log] [blame]
Daniel Dunbara5728872009-12-15 20:14:24 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
Douglas Gregore6258932009-03-19 00:39:20 +00002
3namespace std {
Douglas Gregor33074752009-09-30 21:46:01 +00004 template<typename T> class vector { }; // expected-note{{candidate}}
Douglas Gregore6258932009-03-19 00:39:20 +00005}
6
7typedef int INT;
8typedef float Real;
9
10void test() {
11 using namespace std;
12
13 std::vector<INT> v1;
14 vector<Real> v2;
Sebastian Redl8593c782009-05-21 11:50:50 +000015 v1 = v2; // expected-error{{no viable overloaded '='}}
Douglas Gregore6258932009-03-19 00:39:20 +000016}