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
* auto-profile.c (afdo_annotate_cfg): Use update_max_bb_count.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.other
/
new3.C
blob
843756841fd03392fee53ce926df092f4402b297
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
}