From: Brendan Kehoe Date: Mon, 26 Oct 1998 11:46:59 +0000 (-0500) Subject: tests usage of explicit in a friend decl X-Git-Tag: prereleases/libgcj-0.1~2316 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cc362a4065d072ca270d28fdb041919eb4d2d81f;p=thirdparty%2Fgcc.git tests usage of explicit in a friend decl From-SVN: r23350 --- diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/explicit1.C b/gcc/testsuite/g++.old-deja/g++.brendan/explicit1.C new file mode 100644 index 000000000000..86d94698af0f --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.brendan/explicit1.C @@ -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(); };