blob: aba772004d50bd2c167dcbad8ff984d3c106828f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include <unistd.h>
#include <string.h>
static void
write_message (const char *message)
{
ssize_t unused __attribute__ ((unused));
unused = write (STDOUT_FILENO, message, strlen (message));
}
struct statclass
{
statclass()
{
write_message ("statclass\n");
}
~statclass()
{
write_message ("~statclass\n");
}
};
struct extclass
{
~extclass()
{
static statclass var;
}
};
extclass globvar;
|