c++: add fixed test [PR101740]
Fixed by r12-3643. PR c++/101740 gcc/testsuite/ChangeLog: * g++.dg/template/dtor12.C: New test.
This commit is contained in:
parent
cfdb961588
commit
b0cf0429bd
1 changed files with 19 additions and 0 deletions
19
gcc/testsuite/g++.dg/template/dtor12.C
Normal file
19
gcc/testsuite/g++.dg/template/dtor12.C
Normal file
|
@ -0,0 +1,19 @@
|
|||
// PR c++/101740
|
||||
|
||||
template<template<class> class T, class U>
|
||||
struct Test{
|
||||
void fun(){
|
||||
T<U> d;
|
||||
d.~GG<int>(); // #1
|
||||
}
|
||||
};
|
||||
|
||||
template<class >
|
||||
struct GG {};
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
Test<GG, int> b;
|
||||
b.fun();
|
||||
}
|
Loading…
Add table
Reference in a new issue