diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.jason/dtor4.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.jason/dtor4.C | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.jason/dtor4.C b/gcc/testsuite/g++.old-deja/g++.jason/dtor4.C deleted file mode 100644 index dfdc3aafd6c..00000000000 --- a/gcc/testsuite/g++.old-deja/g++.jason/dtor4.C +++ /dev/null @@ -1,23 +0,0 @@ -// PRMS Id: 5420 -// Bug: g++ gets mixed up calling destructors for references. -// Build don't link: - -template<class X> -class Z { -public: - char space[100]; - void kill() - { X& x = (X&) space[0]; - x.~X(); } -}; - -class C { int i; }; - -void -f() -{ - Z<int> r; - r.kill(); - Z<C> s; - s.kill(); -} |