blob: 14df2e2632a37d44c2ba629cabcae7c9d973c646 [file] [log] [blame]
Douglas Gregordec06662009-08-21 18:42:58 +00001// RUN: clang-cc -fsyntax-only -verify %s
2
3struct 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
9void accept_X0(X0);
10
11void 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}