blob: 5d27713d770be5e753bde5c6f77e1ede87418961 [file] [log] [blame]
// { dg-do assemble }
// GROUPS passed overloading
enum bar {};
void operator+ (int, int);// { dg-error "" } .*
void operator+ (bar&, int);
template <class T> void operator+ (int b, T& t) { (void) T::bogus; }
void operator+ (int, bar&);
template <class T> class foo
{
public:
friend void operator+ <> (int, T&);
};
class baz;
class foo<int>;
class foo<baz>;