Daniel Dunbar | a572887 | 2009-12-15 20:14:24 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
Douglas Gregor | e625893 | 2009-03-19 00:39:20 +0000 | [diff] [blame] | 2 | |
| 3 | namespace std { |
Douglas Gregor | 3307475 | 2009-09-30 21:46:01 +0000 | [diff] [blame] | 4 | template<typename T> class vector { }; // expected-note{{candidate}} |
Douglas Gregor | e625893 | 2009-03-19 00:39:20 +0000 | [diff] [blame] | 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; |
Sebastian Redl | 8593c78 | 2009-05-21 11:50:50 +0000 | [diff] [blame] | 15 | v1 = v2; // expected-error{{no viable overloaded '='}} |
Douglas Gregor | e625893 | 2009-03-19 00:39:20 +0000 | [diff] [blame] | 16 | } |