aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp0x/constexpr-ptrmem2.C
blob: 86859aa12bcd0950a1e5a98c86893539aff693b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/61661
// { dg-do compile { target c++11 } }

struct Outer {

  void Bar();

  struct Foo {
    void (Outer::*ptr)() ;
  };

  static constexpr Foo foo = { &Outer::Bar };
};