From 1648936413d888f5867e398d6a123f9fd82958bf Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Mon, 23 Feb 2015 21:16:05 +0000 Subject: Improve declaration / expression disambiguation around ptr-operators, and use the presence of an abstract declarator with a ptr-operator as proof that a construct cannot parse as an expression to improve diagnostics along error recovery paths. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@230261 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Parser/cxx-variadic-func.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/Parser/cxx-variadic-func.cpp') diff --git a/test/Parser/cxx-variadic-func.cpp b/test/Parser/cxx-variadic-func.cpp index 98a34d3e1b..c0fad95e46 100644 --- a/test/Parser/cxx-variadic-func.cpp +++ b/test/Parser/cxx-variadic-func.cpp @@ -1,8 +1,7 @@ // 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}} + int g(int(...)); // no warning, unambiguously a function declaration } void h(int n..., int m); // expected-error {{expected ')'}} expected-note {{to match}} -- cgit v1.2.1