eolian-cxx: Add test for list and array complex types
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Mon, 23 May 2016 15:33:37 +0000 (12:33 -0300)
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>
Mon, 23 May 2016 19:08:41 +0000 (16:08 -0300)
src/Makefile_Eolian_Cxx.am
src/tests/eolian_cxx/complex.c [new file with mode: 0644]
src/tests/eolian_cxx/complex.eo [new file with mode: 0644]
src/tests/eolian_cxx/complex_cxx.cc [new file with mode: 0644]

index 98aa5e3..a88df99 100644 (file)
@@ -78,6 +78,8 @@ tests/eolian_cxx/name_name_cxx.cc \
 tests/eolian_cxx/generic.c \
 tests/eolian_cxx/eolian_cxx_test_inheritance.cc \
 tests/eolian_cxx/eolian_cxx_test_generate.cc \
+tests/eolian_cxx/complex.c \
+tests/eolian_cxx/complex_cxx.cc \
 tests/eolian_cxx/eolian_cxx_suite.h
 
 tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-eolian_cxx_test_wrapper.$(OBJEXT): tests/eolian_cxx/callback.eo.hh tests/eolian_cxx/callback.eo.h
@@ -97,6 +99,9 @@ tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-d.$(OBJEXT): tests/eolian_cxx
 tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-name_name.$(OBJEXT): tests/eolian_cxx/name_name.eo.c tests/eolian_cxx/name_name.eo.h tests/eolian_cxx/ns_name.eo.c tests/eolian_cxx/ns_name.eo.h tests/eolian_cxx/ns_name_other.eo.c tests/eolian_cxx/ns_name_other.eo.h
 tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-name_name_cxx.$(OBJEXT): tests/eolian_cxx/name_name.eo.h tests/eolian_cxx/name_name.eo.hh tests/eolian_cxx/ns_name.eo.h tests/eolian_cxx/ns_name.eo.hh tests/eolian_cxx/ns_name_other.eo.h tests/eolian_cxx/ns_name_other.eo.hh
 
+tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-complex.$(OBJEXT): tests/eolian_cxx/complex.eo.c tests/eolian_cxx/complex.eo.h
+tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-complex_cxx.$(OBJEXT): tests/eolian_cxx/complex.eo.h tests/eolian_cxx/complex.eo.hh
+
 CLEANFILES += \
 tests/eolian_cxx/callback.eo.hh \
 tests/eolian_cxx/callback.eo.c \
@@ -125,7 +130,11 @@ tests/eolian_cxx/ns_name.eo.impl.hh \
 tests/eolian_cxx/ns_name_other.eo.hh \
 tests/eolian_cxx/ns_name_other.eo.c \
 tests/eolian_cxx/ns_name_other.eo.h \
-tests/eolian_cxx/ns_name_other.eo.impl.hh
+tests/eolian_cxx/ns_name_other.eo.impl.hh \
+tests/eolian_cxx/complex.eo.hh \
+tests/eolian_cxx/complex.eo.c \
+tests/eolian_cxx/complex.eo.h \
+tests/eolian_cxx/complex.eo.impl.hh
 
 
 tests_eolian_cxx_eolian_cxx_suite_CXXFLAGS = \
diff --git a/src/tests/eolian_cxx/complex.c b/src/tests/eolian_cxx/complex.c
new file mode 100644 (file)
index 0000000..a61072b
--- /dev/null
@@ -0,0 +1,8 @@
+
+#include <Eo.h>
+
+struct Complex_Data {};
+typedef struct Complex_Data Complex_Data;
+
+#include "complex.eo.h"
+#include "complex.eo.c"
diff --git a/src/tests/eolian_cxx/complex.eo b/src/tests/eolian_cxx/complex.eo
new file mode 100644 (file)
index 0000000..6e71527
--- /dev/null
@@ -0,0 +1,15 @@
+class Complex (Eo.Base)
+{
+   data: Complex_Data;
+   methods {
+      foo {
+         params {
+            l: list<int*>;
+         }
+      }
+      bar {
+         return: array<int*>;
+      }
+   }
+}
+
diff --git a/src/tests/eolian_cxx/complex_cxx.cc b/src/tests/eolian_cxx/complex_cxx.cc
new file mode 100644 (file)
index 0000000..60b76c4
--- /dev/null
@@ -0,0 +1,5 @@
+
+#include <Eo.h>
+
+#include "complex.eo.h"
+#include "complex.eo.hh"