aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/template/local5.C
blob: bd1d21bfaf21fe4233492d0f6efee302d879e2d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* APPLE LOCAL file mainline 4.1 2005-06-17 4122333 */
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" } */
}