aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/explicit1.C
blob: 148155e2f69a7470b203df4109f220d1b7e630ef (plain)
1
2
3
4
// $7.1.2 disallows explicit on anything but declarations of
// constructors ... including friends.
class foo { public: foo(); };
class bar { public: friend explicit foo::foo(); }; // ERROR - explicit friend