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

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

// PR c++/29518

template< bool C > int assertion_failed( int);
template< class > 
struct N
{
  static bool const okay = true;
  enum {
    t = sizeof( assertion_failed<okay>( 0))
  };
};
int main()
{
  N<int> n;
}