diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/t35.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/t35.C | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/t35.C b/gcc/testsuite/g++.old-deja/g++.pt/t35.C new file mode 100644 index 000000000..70d8846f9 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/t35.C @@ -0,0 +1,12 @@ +// { dg-do assemble } +// { dg-options "" } +template<class X> struct A { + A (); + ~A(); + int x, y, z; +}; + +template <class Y> inline A<Y>::A () { x = y = 3; z = 99; } +template <class Z> inline A<Z>::~A() { y = 9999; } + +A<int> ai; |