2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / rfg28.C
blobe910c2408e8cfb787957a8324aa7e1a6ae73751a
1 // { dg-do assemble  }
2 /* From 01/25/94 working paper (7.1.3):
3  
4         If, in a decl-specifier-seq containing the decl-specifier typedef,
5         there is no type-specifier, or the only type-specifiers are cv-
6         qualifiers, the typedef declaration is ill-formed.
7 */
8  
9 typedef foo;                    // { dg-error "" } invalid typedef
10 typedef const bar;              // { dg-error "" } invalid typedef