summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/local5.C
blob: 705dca39eb0a07b29f964963e4405fbb84352c67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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" } */
}