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.
10 { // ERROR - previous definition
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