aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/eolian_cxx/eolian_cxx_test_wrapper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/eolian_cxx/eolian_cxx_test_wrapper.cc')
-rw-r--r--src/tests/eolian_cxx/eolian_cxx_test_wrapper.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/tests/eolian_cxx/eolian_cxx_test_wrapper.cc b/src/tests/eolian_cxx/eolian_cxx_test_wrapper.cc
index fb680a59c1..123b508734 100644
--- a/src/tests/eolian_cxx/eolian_cxx_test_wrapper.cc
+++ b/src/tests/eolian_cxx/eolian_cxx_test_wrapper.cc
@@ -1,2 +1,31 @@
// Test Eolian-Cxx wrappers
+
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
+#include <Eo.h>
+#include <Ecore.h>
+
+#include <callback.eo.hh>
+
+#include <check.h>
+
+START_TEST(eolian_cxx_test_wrapper_size)
+{
+ efl::eo::eo_init init;
+
+ ::efl::eo::base b(nullptr);
+ ::callback c;
+
+ fail_if(sizeof(b) != sizeof(Eo*));
+ fail_if(sizeof(b) != sizeof(c));
+}
+END_TEST
+
+void
+eolian_cxx_test_wrapper(TCase* tc)
+{
+ tcase_add_test(tc, eolian_cxx_test_wrapper_size);
+}