aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/nontype23.C
blob: dfda4fe2e595b1ece8112587e387e324c6820ece (plain)
1
2
3
4
5
6
7
8
9
// PR c++/48936

template <bool C> int foo (void);
template <class T> struct S
{
  static const unsigned int a = sizeof (T);
  enum { c = sizeof (foo <(a == 0)> ()) };
};
S<int> x;