diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/template29.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/template29.C | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/template29.C b/gcc/testsuite/g++.old-deja/g++.jason/template29.C new file mode 100644 index 000000000..d971ab62d --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.jason/template29.C @@ -0,0 +1,19 @@ +// { dg-do assemble } +// PRMS Id: 9500 + +template <int S> +class base + { +public: + inline base(); + }; + +template <class T> +class derived : public base<sizeof(T)> + { +public: + inline derived(); + }; + +template <class T> +inline derived<T>::derived() : base<sizeof(T)>(){} |