brintos

brintos / llvm-project-archived public Read only

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