Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.brendan/explicit1.C

raw
1 // { dg-do assemble }
2 // $7.1.2 disallows explicit on anything but declarations of
3 // constructors ... including friends.
4 class foo { public: foo(); };
5 class bar { public: friend explicit foo::foo(); }; // { dg-error "" } explicit friend