From cc362a4065d072ca270d28fdb041919eb4d2d81f Mon Sep 17 00:00:00 2001 From: Brendan Kehoe Date: Mon, 26 Oct 1998 06:46:59 -0500 Subject: 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 (limited to 'gcc') 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 0000000..86d9469 --- /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(); }; -- cgit v1.1