Drop usr.bin/rtld/testlib, replaced with ATF tests in usr.bin/c++/*
This regress tests used to check dynamically loaded objects: constructor/destructor call for static objects, C++ runtime support. This is mostly - although without virtual functions, inheritance - covered by existing ATF tests. Stop descending into regress/usr.bin.
This commit is contained in:
parent
27a2f60665
commit
c47a46da1c
@ -1,6 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.19 2010/07/18 12:44:38 jmmv Exp $
|
||||
# $NetBSD: Makefile,v 1.20 2017/05/14 02:30:27 kamil Exp $
|
||||
|
||||
# missing: libexec sbin usr.sbin share
|
||||
SUBDIR+= lib libexec sys usr.bin
|
||||
SUBDIR+= lib libexec sys
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
@ -1,7 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.20 2017/05/14 02:07:58 kamil Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
SUBDIR+= rtld
|
||||
|
||||
.include <bsd.subdir.mk>
|
@ -1,9 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.4 2010/12/14 06:02:21 skrll Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
.if ${MKCXX} != "no"
|
||||
SUBDIR+= testlib
|
||||
.endif
|
||||
|
||||
.include <bsd.subdir.mk>
|
@ -1,27 +0,0 @@
|
||||
# $NetBSD: Makefile,v 1.10 2012/08/10 16:04:28 joerg Exp $
|
||||
|
||||
NOPROFILE= yes
|
||||
|
||||
SRCS= ccexc.cc construct.cc virt.cc
|
||||
|
||||
LIB= test
|
||||
LIBISCXX= yes
|
||||
TESTLIB= testlib.so
|
||||
|
||||
CLEANFILES+= ${TESTLIB}
|
||||
SHLIB_MAJOR= 1
|
||||
SHLIB_MINOR= 0
|
||||
#CXXFLAGS+= -fno-rtti
|
||||
|
||||
.if ${MACHINE_ARCH} == "i386" && "${MKPIC}" != "no"
|
||||
all realall: ${TESTLIB}
|
||||
.else
|
||||
all realall:
|
||||
.endif
|
||||
|
||||
${TESTLIB}: lib${LIB}.so.1.0
|
||||
cp lib${LIB}.so.1.0 ${TESTLIB}
|
||||
|
||||
regress:
|
||||
|
||||
.include <bsd.lib.mk>
|
@ -1,14 +0,0 @@
|
||||
// $NetBSD: ccexc.cc,v 1.1 2000/12/08 19:21:28 drochner Exp $
|
||||
|
||||
// generate references to exception handling runtime code
|
||||
|
||||
extern "C" void ccexc(void);
|
||||
|
||||
void
|
||||
ccexc(void)
|
||||
{
|
||||
try {
|
||||
throw "mist";
|
||||
} catch (char *e) {
|
||||
}
|
||||
}
|
@ -1,25 +0,0 @@
|
||||
// $NetBSD: construct.cc,v 1.2 2003/09/03 20:53:16 drochner Exp $
|
||||
|
||||
// check constructor / destructor calls
|
||||
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
class mist {
|
||||
public:
|
||||
mist(void);
|
||||
~mist();
|
||||
};
|
||||
|
||||
mist::mist(void)
|
||||
{
|
||||
cout << "constructor" << endl;
|
||||
}
|
||||
|
||||
mist::~mist()
|
||||
{
|
||||
cout << "destructor" << endl;
|
||||
}
|
||||
|
||||
static mist construct;
|
@ -1,15 +0,0 @@
|
||||
// $NetBSD: virt.cc,v 1.1 2000/12/08 19:21:28 drochner Exp $
|
||||
|
||||
// g++ generates a reference to "__pure_virtual" with this code
|
||||
|
||||
class mist {
|
||||
public:
|
||||
virtual void vv(void) = 0;
|
||||
};
|
||||
|
||||
class mast: public mist {
|
||||
public:
|
||||
void vv(void) {};
|
||||
};
|
||||
|
||||
static mast virt;
|
Loading…
x
Reference in New Issue
Block a user