* decl.c (make_typename_type): s/parameters/arguments/.
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / constexpr-ptrmem4.C
blob68788caddd254504ee588bd07b2ed6df8cbac9aa
1 // PR c++/65695
2 // { dg-do compile { target c++11 } }
4 struct Foo;
6 struct Bar
8     using MemberFuncT = int (Foo::*)();
10     MemberFuncT h_;
11     constexpr Bar(MemberFuncT h) : h_{h}
12     {
13     }
16 struct Foo
18     int test()
19     {
20         return -1;
21     }
23     static constexpr Bar bar {&Foo::test};
26 constexpr Bar Foo::bar;