2006-07-27 01:31:43 +00:00
|
|
|
#include <unistd.h>
|
2016-10-28 17:57:15 +00:00
|
|
|
#include <string.h>
|
|
|
|
|
|
|
|
static void
|
|
|
|
write_message (const char *message)
|
|
|
|
{
|
|
|
|
ssize_t unused __attribute__ ((unused));
|
|
|
|
unused = write (STDOUT_FILENO, message, strlen (message));
|
|
|
|
}
|
2006-07-27 01:31:43 +00:00
|
|
|
|
|
|
|
struct statclass
|
|
|
|
{
|
|
|
|
statclass()
|
|
|
|
{
|
2016-10-28 17:57:15 +00:00
|
|
|
write_message ("statclass\n");
|
2006-07-27 01:31:43 +00:00
|
|
|
}
|
|
|
|
~statclass()
|
|
|
|
{
|
2016-10-28 17:57:15 +00:00
|
|
|
write_message ("~statclass\n");
|
2006-07-27 01:31:43 +00:00
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
struct extclass
|
|
|
|
{
|
|
|
|
~extclass()
|
|
|
|
{
|
|
|
|
static statclass var;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
extclass globvar;
|