PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / expr / pmf-3.C
blobfac42fc23a55ba468ba56a8a3851f18db047b7c3
1 // PR c++/80485
2 // { dg-do compile { target c++11 } }
4 struct dummy {
5   void nonnull() {};
6   void nonnull2();
7 };
9 typedef void (dummy::*safe_bool)();
11 constexpr safe_bool a = &dummy::nonnull;
12 constexpr safe_bool b = &dummy::nonnull2;
14 static_assert( static_cast<bool>( a ), "" );
15 static_assert( static_cast<bool>( b ), "" );