OSDN Git Service

* g++.dg/template/nontype23.C: New.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / nontype23.C
1 // PR c++/48936
2
3 template <bool C> int foo (void);
4 template <class T> struct S
5 {
6   static const unsigned int a = sizeof (T);
7   enum { c = sizeof (foo <(a == 0)> ()) };
8 };
9 S<int> x;