summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/init/ptrfn1.C
blob: 0cbabbf80727c452a19323f8fcd4b6dacd36e662 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/29016
// { dg-options "-O2" }

class A;
class B
{
  typedef void (*C[5]) (A *);
  static  C D;
  static void E (A*) {}
};
B::C B::D={E};