repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge reload-branch up to revision 101000
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
new3.C
blob
3bea89d3fdfbad4f9895bf5281a8b9253a0d00f6
1
// { dg-do run }
2
typedef __SIZE_TYPE__ size_t;
3
4
template <class T>
5
struct A
6
{
7
int size;
8
A ()
9
{
10
size = 20;
11
T *p;
12
p = new T[size];
13
int foo;
14
foo = 5 * size;
15
};
16
};
17
18
struct B
19
{
20
virtual ~B() { }
21
void operator delete [] (void *ptr, size_t size) { }
22
};
23
24
int main ()
25
{
26
A<B> *p = new A<B>;
27
}