diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/template39.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/template39.C | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template39.C b/gcc/testsuite/g++.old-deja/g++.jason/template39.C new file mode 100644 index 000000000..51eace366 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/template39.C @@ -0,0 +1,22 @@ +// { dg-do assemble } +// PRMS Id: 10283 + +template <class T> struct B { + static void (*p)(); + static void f (); +}; + +template <class T> +void (*B<T>::p)() = &B<T>::f; + +B<int> b; + +template <int i> struct A { + static const int j = i; + int k[j]; +}; + +A<1> a; + +template <int i> +const int A<i>::j; |