diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2016-12-12 16:11:43 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2016-12-13 14:33:01 +0100 |
commit | 883ff74e5f20b68b41f322daa582d9208eece65a (patch) | |
tree | 10f0c8aa40dad4a9b48d8a705761074fff9036d3 /bindgen-integration/cpp/Test.cc | |
parent | 5d9c48e59b49135db1ecfd4ff8c3dbab8ed05086 (diff) |
Add support for constructors, and integration tests.
Diffstat (limited to 'bindgen-integration/cpp/Test.cc')
-rw-r--r-- | bindgen-integration/cpp/Test.cc | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bindgen-integration/cpp/Test.cc b/bindgen-integration/cpp/Test.cc new file mode 100644 index 00000000..d9c13a76 --- /dev/null +++ b/bindgen-integration/cpp/Test.cc @@ -0,0 +1,15 @@ +#include "Test.h" + +const char* Test::name() { + return "Test"; +} + +Test::Test(int foo) + : m_int(foo) + , m_double(0.0) +{} + +Test::Test(double foo) + : m_int(0) + , m_double(foo) +{} |