llvm-for-llvmta/tools/clang/test/Parser/cxx-variadic-func.cpp

9 lines
295 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// 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}}