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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.robertl
/
eb71.C
blob
b1288e238b5d3a2543ad48e0909857a290ad3470
1
// { dg-do assemble }
2
typedef __SIZE_TYPE__ size_t;
3
4
class A {
5
6
public:
7
void operator delete(void*, size_t);
8
void* operator new(size_t);
9
};
10
11
class B : public A {
12
friend class D;
13
14
B();
15
unsigned counter;
16
};
17
18
class D {
19
20
int ins( B*&);
21
};
22
23
int
24
D::ins( B*& tempN)
25
{
26
unsigned i;
27
28
if (i == 10) {
29
}
30
else {
31
}
32
33
tempN = new B();
34
tempN->counter = 20;
35
36
return 0;
37
}