summaryrefslogtreecommitdiff
path: root/test/Parser/cxx-variadic-func.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-02-23 21:16:05 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-02-23 21:16:05 +0000
commit1648936413d888f5867e398d6a123f9fd82958bf (patch)
tree1560f71c6b8def91a10c63b53da348c332160fa2 /test/Parser/cxx-variadic-func.cpp
parent88bf3d3c62a64a744dadbd4b1d5c151501c4805b (diff)
downloadclang-1648936413d888f5867e398d6a123f9fd82958bf.tar.gz
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
Diffstat (limited to 'test/Parser/cxx-variadic-func.cpp')
-rw-r--r--test/Parser/cxx-variadic-func.cpp3
1 files changed, 1 insertions, 2 deletions
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}}