From: Richard Smith Date: Mon, 9 Jan 2012 18:30:34 +0000 (+0000) Subject: Restore some parts of this test which were accidental reverted in r147649. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80a5b27fe4dfccef0c539ac5c4a7ea17a1649085;p=clang Restore some parts of this test which were accidental reverted in r147649. Thanks to David Blaikie for pointing this out. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147783 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/SemaCXX/decl-expr-ambiguity.cpp b/test/SemaCXX/decl-expr-ambiguity.cpp index 555e89ca7d..3a946c0ffb 100644 --- a/test/SemaCXX/decl-expr-ambiguity.cpp +++ b/test/SemaCXX/decl-expr-ambiguity.cpp @@ -27,8 +27,14 @@ void f() { typedef T(*td)(int(p)); extern T(*tp)(int(p)); T d3(); // expected-warning {{empty parentheses interpreted as a function declaration}} + T d3v(void); typedef T d3t(); extern T f3(); + __typeof(*T()) f4(); // expected-warning {{empty parentheses interpreted as a function declaration}} + typedef void *V; + __typeof(*V()) f5(); + T multi1, + multi2(); // expected-warning {{empty parentheses interpreted as a function declaration}} T(d)[5]; // expected-error {{redefinition of 'd'}} typeof(int[])(f) = { 1, 2 }; // expected-error {{extension used}} void(b)(int);