diff options
author | Marcelo Lira <marcelo.lira@openbossa.org> | 2011-12-26 17:51:46 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:18:36 -0300 |
commit | 3991d3b23bcce3f3ac5f468d35a1510a50ec8cba (patch) | |
tree | ab489300ccfabef28538b7285401a4a67b90f1ce | |
parent | c226e110d53cf9d06695bea3b79db8fd1371e0d2 (diff) |
Added a generation/compilation test for container types.
-rw-r--r-- | tests/libsample/mapuser.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/libsample/mapuser.h b/tests/libsample/mapuser.h index 938c6c14f..08582ac5f 100644 --- a/tests/libsample/mapuser.h +++ b/tests/libsample/mapuser.h @@ -46,6 +46,10 @@ public: inline void setMap(std::map<std::string, std::list<int> > map) { m_map = map; } inline std::map<std::string, std::list<int> > getMap() { return m_map; } + // Compile test + static void pointerToMap(std::map<std::string, std::string>* arg) {} + static void referenceToMap(std::map<std::string, std::string>& arg) {} + inline const std::map<int, ByteArray>& passMapIntValueType(const std::map<int, ByteArray>& arg) { return arg; } private: @@ -53,4 +57,3 @@ private: }; #endif // MAPUSER_H - |