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
c++: robustify testcase [PR109752]
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
dtor11.C
blob
9bb58b41d47fc83bfbe312619f73521bfb4a9a12
1
template <class T>
2
struct B
3
{
4
void f(T *p)
5
{
6
p->template A<int>::~A<int>();
7
p->A::~A();
8
p->~A<int>();
9
p->~A();
10
p->~T();
11
p->T::~T();
12
}
13
};
14
15
template <class T>
16
struct A
17
{ };
18
19
int main()
20
{
21
B<A<int> >().f(0);
22
}