aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/repo5.C
blob: e45ade7df48cba8d170f0e99d0aac3bb1f648882 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// PR c++/25625
// { dg-options "-frepo" } 
// { dg-final { cleanup-repo-files } }
// { dg-require-host-local "" }
// { dg-skip-if "dkms are not final links" { vxworks_kernel } }

template< typename T, T N > struct integral_c {
  static const T value = N;
  typedef integral_c< T, value + 1 > next;
};
template< typename T, T N > T const integral_c< T, N >::value;
integral_c<int,0> a;

int main () {}