summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/dtor1.C
blob: 0775a93c91bdb370f6a72a0f772ec4b39927773c (plain)
1
2
3
4
5
6
7
class Foo; // { dg-error "" }

void
bar(void* p)
{
  static_cast<Foo*>(p)->~Foo(); // { dg-error "" }
}