Clang Project

clang_source_code/test/Parser/cxx-variadic-func.cpp
1// RUN: %clang_cc1 -fsyntax-only -verify %s
2
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