netbsd/external/bsd/llvm/dist/clang/test/Parser/cxx-variadic-func.cpp
2015-10-15 10:25:28 +02:00

9 lines
295 B
C++

// 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}}