glibc/dlfcn/bug-atexit3-lib.cc
Ulrich Drepper 6de1f62588 * dlfcn/Makefile: Add rules to build and run bug-atexit3.
* dlfcn/bug-atexit3.c: New file.
	* dlfcn/bug-atexit3-lib.cc: New file.
2006-07-27 01:31:43 +00:00

24 lines
246 B
C++

#include <unistd.h>
struct statclass
{
statclass()
{
write (1, "statclass\n", 10);
}
~statclass()
{
write (1, "~statclass\n", 11);
}
};
struct extclass
{
~extclass()
{
static statclass var;
}
};
extclass globvar;