tests usage of explicit in a friend decl
From-SVN: r23350
This commit is contained in:
parent
7e83af8482
commit
cc362a4065
6
gcc/testsuite/g++.old-deja/g++.brendan/explicit1.C
Normal file
6
gcc/testsuite/g++.old-deja/g++.brendan/explicit1.C
Normal 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(); };
|
Loading…
Reference in New Issue
Block a user