re PR c++/8724 (explicit destructor call for incomplete class allowed)
PR c++/8724 * g++.dg/expr/dtor1.C: New test. From-SVN: r63232
This commit is contained in:
parent
a8d0ddaf4c
commit
692bb58aae
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-02-21 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
PR c++/8724
|
||||
* g++.dg/expr/dtor1.C: New test.
|
||||
|
||||
2003-02-21 Zack Weinberg <zack@codesourcery.com>
|
||||
|
||||
* gcc.dg/cpp/include3.c: New test.
|
||||
|
|
7
gcc/testsuite/g++.dg/expr/dtor1.C
Normal file
7
gcc/testsuite/g++.dg/expr/dtor1.C
Normal file
|
@ -0,0 +1,7 @@
|
|||
class Foo;
|
||||
|
||||
void
|
||||
bar(void* p)
|
||||
{
|
||||
static_cast<Foo*>(p)->~Foo(); // { dg-error "" }
|
||||
}
|
Loading…
Add table
Reference in a new issue