local5.C   [plain text]


struct Attribute { };

template <class T> bool operator == (const Attribute &attr, const T &value);

enum {
  anon = 123
};

void test(int foo)
{
  if (foo == anon) ;  /* { dg-bogus "anonymous type" } */
}