FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.other / struct1.C
blob4f1c52ab09235476d86d4871a7f6d25fb900a28c
1 // Build don't link:
3 // Copyright (C) 1999 Free Software Foundation, Inc.
4 // Contributed by Nathan Sidwell 3 Jun 1999 <nathan@acm.org>
6 // Duplicate definitions are wrong, we should just cough
7 // politely, but we used to die horribly.
9 class Y
10 {   // ERROR - previous definition
12 class Y
13 {   // ERROR - redefinition
16 template<class T> class X
17 {   // ERROR - previous definition
19 template<class T> class X
20 {   // ERROR - redefinition
23 template<class T> class X<T *>
24 {   // ERROR - previous definition
26 template<class T> class X<T *>
27 {   // ERROR - redefinition
30 template<> class X<int>
31 {   // ERROR - previous definition
33 template<> class X<int>
34 {   // ERROR - redefinition
37 template<> class X<int *>
38 {   // ERROR - previous definition
40 template<> class X<int *>
41 {   // ERROR - redefinition