blob: 699d524b9e8b03d57300f3d1eba6b557433fefd7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
// { dg-do assemble }
// 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 // { dg-error "" } previous definition
{
};
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<T *> // { dg-error "" } previous definition
{
};
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 "" } previous definition
{
};
template<> class X<int *> // { dg-error "" } redefinition
{
};
|