hanchenye-llvm-project/clang/test/Parser/cxx-variadic-func.cpp

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