teak-llvm/clang/test/Parser/cxx-variadic-func.cpp
Justin Bogner d26f95bc94 Revert "Improve declaration / expression disambiguation around ptr-operators, and use"
This seems to break mixing function-style and c-style casts, and is
breaking bootstrapping llvm.

This reverts r230261.

llvm-svn: 230274
2015-02-23 22:36:28 +00: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}}