summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.brendan/explicit1.C
blob: 2be91d4ca2f7c2d3340b0ec07923aacc137cdf4d (plain)
1
2
3
4
5
// { dg-do assemble  }
// $7.1.2 disallows explicit on anything but declarations of
// constructors ... including friends.
class foo { public: foo(); };
class bar { public: friend explicit foo::foo(); }; // { dg-error "" } explicit friend