diff options
author | Roland McGrath <roland@gnu.org> | 2006-07-29 23:12:43 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2006-07-29 23:12:43 +0000 |
commit | ab5823b4b6e760345d347b98830ccc75aa81bff6 (patch) | |
tree | f9b25d5f9a16e7ce0318aaf3adcccec0e83fd804 /dlfcn/bug-atexit3-lib.cc | |
parent | aa583d2ff9fca922771d88f1afa255847f2aa4ed (diff) |
Updated to fedora-glibc-20060729T2255cvs/fedora-glibc-2_4_90-14
Diffstat (limited to 'dlfcn/bug-atexit3-lib.cc')
-rw-r--r-- | dlfcn/bug-atexit3-lib.cc | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/dlfcn/bug-atexit3-lib.cc b/dlfcn/bug-atexit3-lib.cc new file mode 100644 index 0000000000..3d01ea81d2 --- /dev/null +++ b/dlfcn/bug-atexit3-lib.cc @@ -0,0 +1,23 @@ +#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; |