diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/template/static30.C')
-rw-r--r-- | gcc/testsuite/g++.dg/template/static30.C | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/template/static30.C b/gcc/testsuite/g++.dg/template/static30.C new file mode 100644 index 0000000..01fa5dc --- /dev/null +++ b/gcc/testsuite/g++.dg/template/static30.C @@ -0,0 +1,10 @@ +// PR c++/31992 + +template <int> struct A +{ + static const int i1; + static const int i2; +}; + +template <int N> const int A<N>::i1(A<N>::i); +template <int N> const int A<N>::i2(3, A<N>::i); |