mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-28 22:40:24 +00:00
917bffa7f6
cdtest.exp: A test program (copied from libg++/test-install) that tests that constructor and destructors are handled corrrectly.
18 lines
250 B
C++
18 lines
250 B
C++
// test program for Class Foo
|
|
|
|
#include "cdtest-foo.h"
|
|
|
|
static Foo static_foo( "static_foo");
|
|
|
|
Foo f()
|
|
{
|
|
Foo x;
|
|
return x;
|
|
}
|
|
|
|
void g()
|
|
{
|
|
Foo other_foo1 = Foo( "other_foo1"), other_foo2 = Foo( "other_foo2");
|
|
other_foo2 = other_foo1;
|
|
}
|