Douglas Gregor | dec0666 | 2009-08-21 18:42:58 +0000 | [diff] [blame^] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
| 2 | |
| 3 | struct X0 { // expected-note{{candidate}} |
| 4 | X0(int); // expected-note{{candidate}} |
| 5 | template<typename T> X0(T); |
| 6 | template<typename T, typename U> X0(T*, U*); |
| 7 | }; |
| 8 | |
| 9 | void accept_X0(X0); |
| 10 | |
| 11 | void test_X0(int i, float f) { |
| 12 | X0 x0a(i); |
| 13 | X0 x0b(f); |
| 14 | X0 x0c = i; |
| 15 | X0 x0d = f; |
| 16 | accept_X0(i); |
| 17 | accept_X0(&i); |
| 18 | accept_X0(f); |
| 19 | accept_X0(&f); |
| 20 | X0 x0e(&i, &f); |
| 21 | X0 x0f(&f, &i); |
| 22 | |
| 23 | X0 x0g(f, &i); // expected-error{{no matching constructor}} |
| 24 | } |