summaryrefslogtreecommitdiffstats
path: root/test/Parser/cxx-variadic-func.cpp
blob: 98a34d3e1bf6719fcf895c6ef418d1d2be6545f6 (plain)
1
2
3
4
5
6
7
8
// RUN: %clang_cc1 -fsyntax-only -verify %s

void f(...) {
  // FIXME: There's no disambiguation here; this is unambiguous.
  int g(int(...)); // expected-warning {{disambiguated}} expected-note {{paren}}
}

void h(int n..., int m); // expected-error {{expected ')'}} expected-note {{to match}}