diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.other/struct1.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.other/struct1.C | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.other/struct1.C b/gcc/testsuite/g++.old-deja/g++.other/struct1.C index f4fa322bd1f..b1f943f604f 100644 --- a/gcc/testsuite/g++.old-deja/g++.other/struct1.C +++ b/gcc/testsuite/g++.old-deja/g++.other/struct1.C @@ -9,34 +9,34 @@ class Y { // { dg-error "" } previous definition }; -class Y -{ // { dg-error "" } redefinition +class Y // { dg-error "" } redefinition +{ }; template<class T> class X { // { dg-error "" } previous definition }; -template<class T> class X -{ // { dg-error "" } redefinition +template<class T> class X // { dg-error "" } redefinition +{ }; template<class T> class X<T *> { // { dg-error "" } previous definition }; -template<class T> class X<T *> -{ // { dg-error "" } redefinition +template<class T> class X<T *> // { dg-error "" } redefinition +{ }; template<> class X<int> { // { dg-error "" } previous definition }; -template<> class X<int> -{ // { dg-error "" } redefinition +template<> class X<int> // { dg-error "" } redefinition +{ }; template<> class X<int *> { // { dg-error "" } previous definition }; -template<> class X<int *> -{ // { dg-error "" } redefinition +template<> class X<int *> // { dg-error "" } redefinition +{ }; |