]> granicus.if.org Git - clang/commitdiff
Restore some parts of this test which were accidental reverted in r147649.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 9 Jan 2012 18:30:34 +0000 (18:30 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 9 Jan 2012 18:30:34 +0000 (18:30 +0000)
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

test/SemaCXX/decl-expr-ambiguity.cpp

index 555e89ca7de2e3fbc3f4b91cb9aec15020455e65..3a946c0ffb949ff81e44bd64022f1afc0ca519cd 100644 (file)
@@ -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);