From cc362a4065d072ca270d28fdb041919eb4d2d81f Mon Sep 17 00:00:00 2001 From: Brendan Kehoe Date: Mon, 26 Oct 1998 06:46:59 -0500 Subject: [PATCH] tests usage of explicit in a friend decl From-SVN: r23350 --- gcc/testsuite/g++.old-deja/g++.brendan/explicit1.C | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 gcc/testsuite/g++.old-deja/g++.brendan/explicit1.C 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 00000000000..86d94698af0 --- /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(); }; -- 2.30.2