Changeset View
Changeset View
Standalone View
Standalone View
tools/regression/pthread/unwind/Test.cpp
/* $FreeBSD$ */ | /* $FreeBSD$ */ | ||||
int destructed; | static int destructed; | ||||
int destructed2; | static int destructed2; | ||||
class Test { | class Test { | ||||
public: | public: | ||||
Test() { printf("Test::Test()\n"); } | Test() { printf("Test::Test()\n"); } | ||||
~Test() { printf("Test::~Test()\n"); destructed = 1; } | ~Test() { printf("Test::~Test()\n"); destructed = 1; } | ||||
}; | }; | ||||
void | void | ||||
cleanup_handler(void *arg) | cleanup_handler(void *arg __unused) | ||||
{ | { | ||||
destructed2 = 1; | destructed2 = 1; | ||||
printf("%s()\n", __func__); | printf("%s()\n", __func__); | ||||
} | } | ||||
void | void | ||||
check_destruct(void) | check_destruct(void) | ||||
{ | { | ||||
Show All 16 Lines |