]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tests usage of explicit in a friend decl
authorBrendan Kehoe <brendan@gcc.gnu.org>
Mon, 26 Oct 1998 11:46:59 +0000 (06:46 -0500)
committerBrendan Kehoe <brendan@gcc.gnu.org>
Mon, 26 Oct 1998 11:46:59 +0000 (06:46 -0500)
From-SVN: r23350

gcc/testsuite/g++.old-deja/g++.brendan/explicit1.C [new file with mode: 0644]

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 (file)
index 0000000..86d9469
--- /dev/null
@@ -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(); };