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++.other/] [new3.C] - Rev 12
Compare with Previous | Blame | View Log
// { dg-do run }
typedef __SIZE_TYPE__ size_t;
template <class T>
struct A
{
int size;
A ()
{
size = 20;
T *p;
p = new T[size];
int foo;
foo = 5 * size;
};
};
struct B
{
virtual ~B() { }
void operator delete [] (void *ptr, size_t size) { }
};
int main ()
{
A<B> *p = new A<B>;
}