URL
https://opencores.org/ocsvn/scarts/scarts/trunk
Subversion Repositories scarts
[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.brendan/] [warnings7.C] - Rev 12
Compare with Previous | Blame | View Log
// { 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);
}