aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/static28.C
blob: eb5ec5313e5e8135f9b8c72a939e5549bff4acd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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;
}