typedef5.C: add some more tests involving checks involving function types and aliases
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Tue, 15 Sep 1998 14:36:22 +0000 (14:36 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Tue, 15 Sep 1998 14:36:22 +0000 (14:36 +0000)
* g++.old-deja/g++.other/typedef5.C: add some more tests involving
checks involving function types and aliases

From-SVN: r22430

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/typedef5.C

index 2e0d430a5b0c4c5a7cb2a671e95d70967f787514..8ffcdab24117a1d491e6be59adcf35d56dd49cc4 100644 (file)
@@ -1,3 +1,8 @@
+1998-09-15  Alexandre Oliva  <oliva@dcc.unicamp.br>
+
+       * g++.old-deja/g++.other/typedef5.C: add some more tests involving 
+       checks involving function types and aliases
+
 1998-09-12  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
        * g++.old-deja/g++.other/typedef5.C: check whether typedefs can be
index c382088ef6e9e6cb2f059fd40035e7c570e75c23..d8f74aee938bc7e13426e7e4f5c9e85e7f933dc0 100644 (file)
@@ -4,5 +4,13 @@
 
 typedef int t;
 typedef t* u;
+typedef u v;
+typedef v* (*w)(t);
 typedef int t;
 typedef t* u;
+typedef u v;
+typedef v* (*w)(t const); // this is ok
+typedef v* (*w)(t); // ERROR - covers message `previously declared here'
+typedef v* (*const w)(t); // ERROR - invalid redeclaration
+typedef v const* (*w)(t); // ERROR - invalid redeclaration
+typedef v* const (*w)(t); // ERROR - invalid redeclaration