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
Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
dtor4.C
blob
25ef1cfe7335c1da4806671399eb9e4e6be56fe2
1
// { dg-do assemble }
2
// PRMS Id: 5420
3
// Bug: g++ gets mixed up calling destructors for references.
4
5
template<class X>
6
class Z {
7
public:
8
char space[100];
9
void kill()
10
{ X& x = (X&) space[0];
11
x.~X(); }
12
};
13
14
class C { int i; };
15
16
void
17
f()
18
{
19
Z<int> r;
20
r.kill();
21
Z<C> s;
22
s.kill();
23
}