mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-21 08:03:41 +08:00
* g++.old-deja/g++.other/struct1.C: New test.
From-SVN: r28474
This commit is contained in:
parent
13bd123dfb
commit
4a30151d10
@ -1,3 +1,7 @@
|
||||
1999-08-03 Nathan Sidwell <nathan@acm.org>
|
||||
|
||||
* g++.old-deja/g++.other/struct1.C: New test.
|
||||
|
||||
1999-08-03 Nathan Sidwell <nathan@acm.org>
|
||||
|
||||
* g++.old-deja/g++.other/enum2.C: New test.
|
||||
|
42
gcc/testsuite/g++.old-deja/g++.other/struct1.C
Normal file
42
gcc/testsuite/g++.old-deja/g++.other/struct1.C
Normal file
@ -0,0 +1,42 @@
|
||||
// Build don't link:
|
||||
|
||||
// Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
// Contributed by Nathan Sidwell 3 Jun 1999 <nathan@acm.org>
|
||||
|
||||
// Duplicate definitions are wrong, we should just cough
|
||||
// politely, but we used to die horribly.
|
||||
|
||||
class Y
|
||||
{ // ERROR - previous definition
|
||||
};
|
||||
class Y
|
||||
{ // ERROR - redefinition
|
||||
};
|
||||
|
||||
template<class T> class X
|
||||
{ // ERROR - previous definition
|
||||
};
|
||||
template<class T> class X
|
||||
{ // ERROR - redefinition
|
||||
};
|
||||
|
||||
template<class T> class X<T *>
|
||||
{ // ERROR - previous definition
|
||||
};
|
||||
template<class T> class X<T *>
|
||||
{ // ERROR - redefinition
|
||||
};
|
||||
|
||||
template<> class X<int>
|
||||
{ // ERROR - previous definition
|
||||
};
|
||||
template<> class X<int>
|
||||
{ // ERROR - redefinition
|
||||
};
|
||||
|
||||
template<> class X<int *>
|
||||
{ // ERROR - previous definition
|
||||
};
|
||||
template<> class X<int *>
|
||||
{ // ERROR - redefinition
|
||||
};
|
Loading…
Reference in New Issue
Block a user