aboutsummaryrefslogtreecommitdiff
path: root/dlfcn/bug-atexit3-lib.cc
blob: ed3334709acdc0ce262264ff900aaf30e722d759 (plain)
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
#include <unistd.h>
#include <string.h>

#include <support/support.h>

struct statclass
{
  statclass()
  {
    write_message ("statclass\n");
  }
  ~statclass()
  {
    write_message ("~statclass\n");
  }
};

struct extclass
{
  ~extclass()
  {
    static statclass var;
  }
};

extclass globvar;