summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/static2.C
blob: b0344f480669bf901413285f8f7858be8d37a0ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// PR 14804
// { dg-do run }

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

struct B : public A {
  virtual void bar() = 0;
};

typedef void (A::*mfptr)();

struct D {
  mfptr p;
};

static const D ds[] = {
  { reinterpret_cast<mfptr>(&B::bar) },
};

int main()
{
  return 0;
}