diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/rfg28.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/rfg28.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/rfg28.C b/gcc/testsuite/g++.old-deja/g++.jason/rfg28.C new file mode 100644 index 000000000..e910c2408 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/rfg28.C @@ -0,0 +1,10 @@ +// { dg-do assemble } +/* From 01/25/94 working paper (7.1.3): + + If, in a decl-specifier-seq containing the decl-specifier typedef, + there is no type-specifier, or the only type-specifiers are cv- + qualifiers, the typedef declaration is ill-formed. +*/ + +typedef foo; // { dg-error "" } invalid typedef +typedef const bar; // { dg-error "" } invalid typedef |