view gcc/testsuite/g++.dg/template/local5.C @ 111:04ced10e8804

gcc 7
author kono
date Fri, 27 Oct 2017 22:46:09 +0900
parents
children
line wrap: on
line source

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" } */
}