OSDN Git Service

* g++.old-deja/g++.other/typedef5.C: add some more tests involving
authoroliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Sep 1998 14:36:22 +0000 (14:36 +0000)
committeroliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Sep 1998 14:36:22 +0000 (14:36 +0000)
checks involving function types and aliases

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22430 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 2e0d430..8ffcdab 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 c382088..d8f74ae 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