| 1 |
// RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 |
|
| 3 |
void f(...) { |
| 4 |
// FIXME: There's no disambiguation here; this is unambiguous. |
| 5 |
int g(int(...)); // expected-warning {{disambiguated}} expected-note {{paren}} |
| 6 |
} |
| 7 |
|
| 8 |
void h(int n..., int m); // expected-error {{expected ')'}} expected-note {{to match}} |
| 9 |
|
| 10 |
|
| 11 |
namespace GH153445 { |
| 12 |
void f(int = {}...); |
| 13 |
|
| 14 |
struct S { |
| 15 |
void f(int = {}...); |
| 16 |
void g(int...); |
| 17 |
}; |
| 18 |
|
| 19 |
void S::g(int = {}...) {} |
| 20 |
} |
| 21 |
|
| 22 |
|
| 23 |
template <typename ...T> |
| 24 |
constexpr int a() {return 1;} |
| 25 |
|
| 26 |
struct S2 { |
| 27 |
template <typename ...Ts> |
| 28 |
void f(int = a<Ts...>()...); |
| 29 |
}; |