1 // RUN: %clang_cc1 -verify %s
3 void a(int x
= 0, int y
); // #1 expected-error {{missing default argument on parameter 'y'}}
5 a(); // expected-error {{no matching function}} expected-note@#1 {{requires 2 arguments, but 0 were provided}}
6 a(0); // expected-error {{no matching function}} expected-note@#1 {{requires 2 arguments, but 1 was provided}}
10 void a(int x
, int y
= 0);
17 template<typename
...T
> void f(int x
= 0, T
...); // #2
19 f
<int>(); // expected-error {{no matching function}} expected-note@#2 {{requires 2 arguments, but 0 were provided}}
20 f
<int>(0); // expected-error {{no matching function}} expected-note@#2 {{requires 2 arguments, but 1 was provided}}