diff options
author | Per Bothner <per@bothner.com> | 1992-08-05 04:15:37 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1992-08-05 04:15:37 +0000 |
commit | 917bffa7f6dd3a04195a790595a2088683386227 (patch) | |
tree | fb5e23a8c1dcef367ae67cc63fed7ea9b45fe0f2 /ld/cdtest.exp | |
parent | c7a535938ed0ac4a601897462e0012ed7b2430e1 (diff) | |
download | gdb-917bffa7f6dd3a04195a790595a2088683386227.zip gdb-917bffa7f6dd3a04195a790595a2088683386227.tar.gz gdb-917bffa7f6dd3a04195a790595a2088683386227.tar.bz2 |
* cdtest-main.cc, cdtest-func.cc, cdtest-foo.h, cdtest-foo.cc,
cdtest.exp: A test program (copied from libg++/test-install)
that tests that constructor and destructors are handled
corrrectly.
Diffstat (limited to 'ld/cdtest.exp')
-rw-r--r-- | ld/cdtest.exp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ld/cdtest.exp b/ld/cdtest.exp new file mode 100644 index 0000000..39be0db --- /dev/null +++ b/ld/cdtest.exp @@ -0,0 +1,15 @@ +Constructing Foo(1) "static_foo" +Constructing Foo(2) "static_foo" +Constructing Foo(3) "automatic_foo" +Constructing Foo(4) "default-foo" +Initializing Foo(5) "default-foo" with Foo(4) +Destructing Foo(4) "default-foo" (remaining foos: 4) +Constructing Foo(5) "other_foo1" +Constructing Foo(6) "other_foo2" +Copying Foo(5) "other_foo1" to Foo(6) +Destructing Foo(6) "other_foo1" (remaining foos: 5) +Destructing Foo(5) "other_foo1" (remaining foos: 4) +Destructing Foo(5) "default-foo" (remaining foos: 3) +Destructing Foo(3) "automatic_foo" (remaining foos: 2) +Destructing Foo(2) "static_foo" (remaining foos: 1) +Destructing Foo(1) "static_foo" (remaining foos: 0) |