Fix test-suite fallout of default -Wreturn-type.
[official-gcc.git] / gcc / testsuite / g++.dg / warn / Waddress-4.C
bloba9fdfc48b4dd84ed7bf84afa4e083b00296aa7df
1 // PR c++/71121
2 // { dg-do compile { target c++14 } }
3 // { dg-options -Waddress }
5 struct CC { void mbr(); };
7 constexpr auto getFunc() {
8     return &CC::mbr;
11 constexpr bool xxx(void (CC::*_a)())
13     constexpr auto f = getFunc();
14     return (f == _a);