Dead
[official-gcc.git] / gomp-20050608-branch / gcc / testsuite / g++.old-deja / g++.other / typedef5.C
blobf9e71479c7f9fc4116108e3d7118f56125e3b337
1 // { dg-do assemble  }
3 // by Alexandre Oliva <oliva@dcc.unicamp.br>
5 typedef int t;
6 typedef t* u;
7 typedef u v;
8 typedef v* (*w)(t);
9 typedef int t;
10 typedef t* u;
11 typedef u v;
12 typedef v* (*w)(t const); // this is ok
13 typedef v* (*w)(t); // { dg-error "" } covers message `previously declared here'
14 typedef v* (*const w)(t); // { dg-error "" } invalid redeclaration
15 typedef v const* (*w)(t); // { dg-error "" } invalid redeclaration
16 typedef v* const (*w)(t); // { dg-error "" } invalid redeclaration