summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/inherit/volatile1.C
blob: 48df50adac59b84d0b5a6e1df01466e8b9240648 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/19299
// Origin: Andrew Pinski <pinskia@gcc.gnu.org>

// { dg-do compile }

struct V
{
  virtual void foo() = 0;
};

void bar(V volatile* p)
{
  p->V::~V();
}