Sign in
gnu
/
gcc
/
19220ca6aa79921cc431e41f25986e16410c7a6a
/
.
/
gcc
/
testsuite
/
g++.dg
/
template
/
explicit1.C
blob: 64f581e58dfc5d8d7604db2bd3a28bbc52834833 [
file
] [
log
] [
blame
]
// { dg-do link }
// { dg-options "-fno-implicit-templates" }
template
<
class
T
>
struct
C
{
~
C
();
};
template
<
class
T
>
C
<
T
>::~
C
()
{}
struct
X
{
C
<
X
>
*
p
;
~
X
()
{
delete
p
;
}
};
template
class
C
<
X
>;
C
<
X
>
x
;
int
main
()
{}