Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/regress/usr.bin Eliminate regress/usr.bin/c++/static_destruc...
details: https://anonhg.NetBSD.org/src/rev/d1fd52d0d354
branches: trunk
changeset: 353596:d1fd52d0d354
user: kamil <kamil%NetBSD.org@localhost>
date: Sun May 14 02:07:58 2017 +0000
description:
Eliminate regress/usr.bin/c++/static_destructor - obsoleted with ATF tests
Replaced and enhanced with tests/usr.bin/c++/t_static_destructor.
diffstat:
regress/usr.bin/Makefile | 6 +-
regress/usr.bin/c++/Makefile | 5 -
regress/usr.bin/c++/static_destructor/Makefile | 11 ----
regress/usr.bin/c++/static_destructor/expected | 4 -
regress/usr.bin/c++/static_destructor/static_destructor.cc | 37 --------------
5 files changed, 1 insertions(+), 62 deletions(-)
diffs (89 lines):
diff -r f8344bde89d9 -r d1fd52d0d354 regress/usr.bin/Makefile
--- a/regress/usr.bin/Makefile Sun May 14 02:02:25 2017 +0000
+++ b/regress/usr.bin/Makefile Sun May 14 02:07:58 2017 +0000
@@ -1,11 +1,7 @@
-# $NetBSD: Makefile,v 1.19 2010/08/01 16:44:31 jmmv Exp $
+# $NetBSD: Makefile,v 1.20 2017/05/14 02:07:58 kamil Exp $
.include <bsd.own.mk>
-.if ${MKCXX} != "no"
-SUBDIR+= c++
-.endif
-
SUBDIR+= rtld
.include <bsd.subdir.mk>
diff -r f8344bde89d9 -r d1fd52d0d354 regress/usr.bin/c++/Makefile
--- a/regress/usr.bin/c++/Makefile Sun May 14 02:02:25 2017 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2007/09/17 17:37:48 drochner Exp $
-
-SUBDIR= static_destructor
-
-.include <bsd.subdir.mk>
diff -r f8344bde89d9 -r d1fd52d0d354 regress/usr.bin/c++/static_destructor/Makefile
--- a/regress/usr.bin/c++/static_destructor/Makefile Sun May 14 02:02:25 2017 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-# $NetBSD: Makefile,v 1.1 2007/09/17 17:37:48 drochner Exp $
-
-PROG_CXX= static_destructor
-NOMAN= # defined
-
-regress:
- ./${PROG} > out && diff out ${.CURDIR}/expected
-
-CLEANFILES+= out
-
-.include <bsd.prog.mk>
diff -r f8344bde89d9 -r d1fd52d0d354 regress/usr.bin/c++/static_destructor/expected
--- a/regress/usr.bin/c++/static_destructor/expected Sun May 14 02:02:25 2017 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,4 +0,0 @@
-constructor A
-constructor B
-destructor B : i = 1
-destructor A : i = 10
diff -r f8344bde89d9 -r d1fd52d0d354 regress/usr.bin/c++/static_destructor/static_destructor.cc
--- a/regress/usr.bin/c++/static_destructor/static_destructor.cc Sun May 14 02:02:25 2017 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-/* $NetBSD: static_destructor.cc,v 1.1 2007/09/17 17:37:49 drochner Exp $ */
-
-/*
- * Tests proper order of destructor calls
- * (must be in reverse order of constructor completion).
- * from the gcc mailing list
- */
-
-#include <iostream>
-using namespace std;
-
-class A
-{
-public:
- int i;
- A(int j) : i(j) { cout << "constructor A" << endl; }
- ~A() { cout << "destructor A : i = " << i << endl; }
-};
-
-class B
-{
-public:
- A *n;
- B() {
- static A p(1);
- n = &p;
- cout << "constructor B" << endl;
- }
- ~B() {
- cout << "destructor B : i = " << n->i << endl;
- n->i = 10;
- }
-};
-
-class B x1;
-
-int main (void) { return 0; }
Home |
Main Index |
Thread Index |
Old Index