aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/other/pr47218.C
blob: 57245c036b2cc2cc5a6e8f480fa78ab3331250fc (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 } }