Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
warnings7.C
blob: 89d6ecaf586b4f98b52a01873b08b3a316780a50 [
file
] [
log
] [
blame
]
// { dg-do assemble }
// { dg-options "-O2 -Wall" }
// GROUPS passed warnings
template
<
class
T
>
class
X
{
public
:
void
kill
(
unsigned
i
)
{
vec
[
i
].~
T
();
}
T
*
vec
;
};
class
Y
{
};
void
x
()
{
X
<int>
x
;
x
.
kill
(
0
);
X
<
Y
>
y
;
y
.
kill
(
0
);
}