annotate gcc/testsuite/g++.dg/template/repo5.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 // PR c++/25625
kono
parents:
diff changeset
2 // { dg-options "-frepo" }
kono
parents:
diff changeset
3 // { dg-final { cleanup-repo-files } }
kono
parents:
diff changeset
4 // { dg-require-host-local "" }
kono
parents:
diff changeset
5 // { dg-skip-if "dkms are not final links" { vxworks_kernel } }
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 template< typename T, T N > struct integral_c {
kono
parents:
diff changeset
8 static const T value = N;
kono
parents:
diff changeset
9 typedef integral_c< T, value + 1 > next;
kono
parents:
diff changeset
10 };
kono
parents:
diff changeset
11 template< typename T, T N > T const integral_c< T, N >::value;
kono
parents:
diff changeset
12 integral_c<int,0> a;
kono
parents:
diff changeset
13
kono
parents:
diff changeset
14 int main () {}