summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-05-23 12:33:37 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-05-23 16:08:41 -0300
commit8fd1656898c26f547bb76ef86da2827e447ecb3b (patch)
treed30bb6a6cd3db8666da13c834cf119ffb889bc2a
parentb613d6f1d98a511daf6524778ccadf8fadf75e3d (diff)
eolian-cxx: Add test for list and array complex types
-rw-r--r--src/Makefile_Eolian_Cxx.am11
-rw-r--r--src/tests/eolian_cxx/complex.c8
-rw-r--r--src/tests/eolian_cxx/complex.eo15
-rw-r--r--src/tests/eolian_cxx/complex_cxx.cc5
4 files changed, 38 insertions, 1 deletions
diff --git a/src/Makefile_Eolian_Cxx.am b/src/Makefile_Eolian_Cxx.am
index 98aa5e3022..a88df99808 100644
--- a/src/Makefile_Eolian_Cxx.am
+++ b/src/Makefile_Eolian_Cxx.am
@@ -78,6 +78,8 @@ tests/eolian_cxx/name_name_cxx.cc \
78tests/eolian_cxx/generic.c \ 78tests/eolian_cxx/generic.c \
79tests/eolian_cxx/eolian_cxx_test_inheritance.cc \ 79tests/eolian_cxx/eolian_cxx_test_inheritance.cc \
80tests/eolian_cxx/eolian_cxx_test_generate.cc \ 80tests/eolian_cxx/eolian_cxx_test_generate.cc \
81tests/eolian_cxx/complex.c \
82tests/eolian_cxx/complex_cxx.cc \
81tests/eolian_cxx/eolian_cxx_suite.h 83tests/eolian_cxx/eolian_cxx_suite.h
82 84
83tests/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 85tests/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
97tests/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 99tests/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
98tests/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 100tests/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
99 101
102tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-complex.$(OBJEXT): tests/eolian_cxx/complex.eo.c tests/eolian_cxx/complex.eo.h
103tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-complex_cxx.$(OBJEXT): tests/eolian_cxx/complex.eo.h tests/eolian_cxx/complex.eo.hh
104
100CLEANFILES += \ 105CLEANFILES += \
101tests/eolian_cxx/callback.eo.hh \ 106tests/eolian_cxx/callback.eo.hh \
102tests/eolian_cxx/callback.eo.c \ 107tests/eolian_cxx/callback.eo.c \
@@ -125,7 +130,11 @@ tests/eolian_cxx/ns_name.eo.impl.hh \
125tests/eolian_cxx/ns_name_other.eo.hh \ 130tests/eolian_cxx/ns_name_other.eo.hh \
126tests/eolian_cxx/ns_name_other.eo.c \ 131tests/eolian_cxx/ns_name_other.eo.c \
127tests/eolian_cxx/ns_name_other.eo.h \ 132tests/eolian_cxx/ns_name_other.eo.h \
128tests/eolian_cxx/ns_name_other.eo.impl.hh 133tests/eolian_cxx/ns_name_other.eo.impl.hh \
134tests/eolian_cxx/complex.eo.hh \
135tests/eolian_cxx/complex.eo.c \
136tests/eolian_cxx/complex.eo.h \
137tests/eolian_cxx/complex.eo.impl.hh
129 138
130 139
131tests_eolian_cxx_eolian_cxx_suite_CXXFLAGS = \ 140tests_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
index 0000000000..a61072bdc1
--- /dev/null
+++ b/src/tests/eolian_cxx/complex.c
@@ -0,0 +1,8 @@
1
2#include <Eo.h>
3
4struct Complex_Data {};
5typedef struct Complex_Data Complex_Data;
6
7#include "complex.eo.h"
8#include "complex.eo.c"
diff --git a/src/tests/eolian_cxx/complex.eo b/src/tests/eolian_cxx/complex.eo
new file mode 100644
index 0000000000..6e71527199
--- /dev/null
+++ b/src/tests/eolian_cxx/complex.eo
@@ -0,0 +1,15 @@
1class Complex (Eo.Base)
2{
3 data: Complex_Data;
4 methods {
5 foo {
6 params {
7 l: list<int*>;
8 }
9 }
10 bar {
11 return: array<int*>;
12 }
13 }
14}
15
diff --git a/src/tests/eolian_cxx/complex_cxx.cc b/src/tests/eolian_cxx/complex_cxx.cc
new file mode 100644
index 0000000000..60b76c4337
--- /dev/null
+++ b/src/tests/eolian_cxx/complex_cxx.cc
@@ -0,0 +1,5 @@
1
2#include <Eo.h>
3
4#include "complex.eo.h"
5#include "complex.eo.hh"