[cfe-commits] r147783 - /cfe/trunk/test/SemaCXX/decl-expr-ambiguity.cpp
Richard Smith
richard-llvm at metafoo.co.uk
Mon Jan 9 10:30:34 PST 2012
Author: rsmith
Date: Mon Jan 9 12:30:34 2012
New Revision: 147783
URL: http://llvm.org/viewvc/llvm-project?rev=147783&view=rev
Log:
Restore some parts of this test which were accidental reverted in r147649.
Thanks to David Blaikie for pointing this out.
Modified:
cfe/trunk/test/SemaCXX/decl-expr-ambiguity.cpp
Modified: cfe/trunk/test/SemaCXX/decl-expr-ambiguity.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaCXX/decl-expr-ambiguity.cpp?rev=147783&r1=147782&r2=147783&view=diff
==============================================================================
--- cfe/trunk/test/SemaCXX/decl-expr-ambiguity.cpp (original)
+++ cfe/trunk/test/SemaCXX/decl-expr-ambiguity.cpp Mon Jan 9 12:30:34 2012
@@ -27,8 +27,14 @@
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);
More information about the cfe-commits
mailing list