Add unit tests for parameter-as-ward forthcoming implementation.

This commit is contained in:
Gustavo J. A. M. Carneiro committed 2007-08-29 00:44:04 +01:00
1 parent 74bbf349d1
commit 4dcee720bb
4 files changed
+112

No files matched your search

+15
View File
@@ -114,3 +114,18 @@ Foobar* get_foobar_with_other_as_custodian (const SomeObject *other)
{
return new Foobar;
}
Foobar* create_new_foobar()
{
return new Foobar;
}
void set_foobar_with_other_as_custodian(Foobar *foobar, const SomeObject *other)
{
// empty
}
SomeObject * set_foobar_with_return_as_custodian(Foobar *foobar)
{
return new SomeObject("xxx");
}