1 // { dg-do compile { target c++11 } }
2 // { dg-additional-options "-Wparentheses -Wno-non-template-friend" }
4 // the MVP warning triggered on a friend decl. */
6 enum class Q {}; // C++ 11ness
35 friend X (::here::friendFunc1 ()); // parens are needed
36 friend X *(::here::friendFunc2 ()); // { dg-warning "" }
37 friend X *::here::friendFunc2 ();
38 friend int (::here::friendFunc3 ()); // { dg-warning "" }
41 template <typename T> class X
43 friend typename T::frob (::here::bob ());
44 friend Q (::here::bill ());
45 friend R (::here::ben ());