typedef5.C: add some more tests involving checks involving function types and aliases
* g++.old-deja/g++.other/typedef5.C: add some more tests involving checks involving function types and aliases From-SVN: r22430
This commit is contained in:
parent
b6bee398d7
commit
cc5c4e2fd7
2 changed files with 13 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue