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);
}