Back to index

glibc  2.9
bug-atexit3-lib.cc
Go to the documentation of this file.
00001 #include <unistd.h>
00002 
00003 struct statclass
00004 {
00005   statclass()
00006   {
00007     write (1, "statclass\n", 10);
00008   }
00009   ~statclass()
00010   {
00011     write (1, "~statclass\n", 11);
00012   }
00013 };
00014 
00015 struct extclass
00016 {
00017   ~extclass()
00018   {
00019     static statclass var;
00020   }
00021 };
00022 
00023 extclass globvar;