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
Rebase.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
tempdest.C
blob
f1940a4dbbddd91f674a0657be9f9592aeb75641
1
// { dg-do assemble }
2
// GROUPS passed templates destructors
3
// Example of PR 3308 workaround
4
5
template <class T>
6
class A
7
{
8
T q;
9
public:
10
~A() { (&q)->T::~T(); }
11
};
12
13
typedef unsigned int ui;
14
15
int main()
16
{
17
A<ui> *ap = new A<ui>;
18
19
delete ap;
20
}