summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/pr47218.C
blob: f94e15742eb337e2d7973ce9dd43d9370b7d3105 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do link } */
/* { dg-options "-save-temps" } */
/* { dg-additional-sources "pr47218-1.C" } */

#include "pr47218.h"

Foo3::~Foo3 ()
{
  ((FooBaseBase1*)this)->Bar();
}

void Foo3::Bar()
{
}

int main ()
{
  return 0;
}

// { dg-final cleanup-saved-temps }