URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [new3.C] - Rev 154
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>;
}