xref: /minix3/external/bsd/llvm/dist/clang/test/Parser/cxx-variadic-func.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -fsyntax-only -verify %s
2f4a2713aSLionel Sambuc 
f(...)3f4a2713aSLionel Sambuc void f(...) {
4*0a6a1f1dSLionel Sambuc   // FIXME: There's no disambiguation here; this is unambiguous.
5*0a6a1f1dSLionel Sambuc   int g(int(...)); // expected-warning {{disambiguated}} expected-note {{paren}}
6f4a2713aSLionel Sambuc }
7*0a6a1f1dSLionel Sambuc 
8*0a6a1f1dSLionel Sambuc void h(int n..., int m); // expected-error {{expected ')'}} expected-note {{to match}}
9