aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2011-12-20 19:43:57 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:18:35 -0300
commit88a481ce3b5574a79c23bc86b1d85872d613c364 (patch)
tree45d41e40b80de63f55774623b81d5d86c7f75dc3 /tests
parentd7452d0b39fca516719bb103f076a22db6f25c2e (diff)
Added a compilation test for containers of object types used as values.
Diffstat (limited to 'tests')
-rw-r--r--tests/libsample/objecttypebyvalue.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/libsample/objecttypebyvalue.h b/tests/libsample/objecttypebyvalue.h
index ce5d33eeb..536af37cc 100644
--- a/tests/libsample/objecttypebyvalue.h
+++ b/tests/libsample/objecttypebyvalue.h
@@ -22,6 +22,7 @@
#ifndef OBJECTTYPEBYVALUE_H
#define OBJECTTYPEBYVALUE_H
+#include <list>
#include "protected.h"
class ObjectTypeByValue
@@ -30,6 +31,8 @@ public:
ObjectTypeByValue returnSomeKindOfMe() { return ObjectTypeByValue(); }
void acceptKindOfMeAsValue(ObjectTypeByValue kindOfMe) {}
+ void acceptListOfObjectTypeByValue(std::list<ObjectTypeByValue> listOfMe) {}
+
// prop used to check for segfaults
ProtectedProperty prop;
};