tests usage of explicit in a friend decl

From-SVN: r23350
This commit is contained in:
Brendan Kehoe 1998-10-26 06:46:59 -05:00
parent 7e83af8482
commit cc362a4065

View File

@ -0,0 +1,6 @@
// Build don't link:
// $7.1.2 disallows explicit on anything but declarations of
// constructors ... including friends.
class foo { public: foo(); };
class bar { public: friend explicit foo::foo(); };