summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Makefile_Eolian_Cxx.am2
-rw-r--r--src/tests/eolian_cxx/cyclic1.eo8
-rw-r--r--src/tests/eolian_cxx/cyclic2.eo8
-rw-r--r--src/tests/eolian_cxx/eolian_cxx_suite.cc1
-rw-r--r--src/tests/eolian_cxx/eolian_cxx_suite.h1
-rw-r--r--src/tests/eolian_cxx/eolian_cxx_test_cyclic.cc21
6 files changed, 41 insertions, 0 deletions
diff --git a/src/Makefile_Eolian_Cxx.am b/src/Makefile_Eolian_Cxx.am
index 71a930ef11..6d0ae1d73e 100644
--- a/src/Makefile_Eolian_Cxx.am
+++ b/src/Makefile_Eolian_Cxx.am
@@ -89,6 +89,7 @@ tests/eolian_cxx/generic.c \
89tests/eolian_cxx/name1_name2_type_generation.c \ 89tests/eolian_cxx/name1_name2_type_generation.c \
90tests/eolian_cxx/eolian_cxx_test_inheritance.cc \ 90tests/eolian_cxx/eolian_cxx_test_inheritance.cc \
91tests/eolian_cxx/eolian_cxx_test_generate.cc \ 91tests/eolian_cxx/eolian_cxx_test_generate.cc \
92tests/eolian_cxx/eolian_cxx_test_cyclic.cc \
92tests/eolian_cxx/complex.c \ 93tests/eolian_cxx/complex.c \
93tests/eolian_cxx/complex_cxx.cc \ 94tests/eolian_cxx/complex_cxx.cc \
94tests/eolian_cxx/eolian_cxx_suite.h 95tests/eolian_cxx/eolian_cxx_suite.h
@@ -97,6 +98,7 @@ tests/eolian_cxx/name1_name2_type_generation.$(OBJEXT): tests/eolian_cxx/name1_n
97tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-eolian_cxx_test_inheritance.$(OBJEXT): tests/eolian_cxx/simple.eo.hh tests/eolian_cxx/simple.eo.h 98tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-eolian_cxx_test_inheritance.$(OBJEXT): tests/eolian_cxx/simple.eo.hh tests/eolian_cxx/simple.eo.h
98tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-eolian_cxx_test_binding.$(OBJEXT): tests/eolian_cxx/generic.eo.hh tests/eolian_cxx/generic.eo.h tests/eolian_cxx/name1_name2_type_generation.eo.hh tests/eolian_cxx/name1_name2_type_generation.eo.h tests/eolian_cxx/name1_name2_type_generation.eo.c 99tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-eolian_cxx_test_binding.$(OBJEXT): tests/eolian_cxx/generic.eo.hh tests/eolian_cxx/generic.eo.h tests/eolian_cxx/name1_name2_type_generation.eo.hh tests/eolian_cxx/name1_name2_type_generation.eo.h tests/eolian_cxx/name1_name2_type_generation.eo.c
99tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-eolian_cxx_test_address_of.$(OBJEXT): tests/eolian_cxx/a.eo.hh tests/eolian_cxx/b.eo.hh tests/eolian_cxx/c.eo.hh tests/eolian_cxx/d.eo.hh tests/eolian_cxx/a.eo.h tests/eolian_cxx/b.eo.h tests/eolian_cxx/c.eo.h tests/eolian_cxx/d.eo.h 100tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-eolian_cxx_test_address_of.$(OBJEXT): tests/eolian_cxx/a.eo.hh tests/eolian_cxx/b.eo.hh tests/eolian_cxx/c.eo.hh tests/eolian_cxx/d.eo.hh tests/eolian_cxx/a.eo.h tests/eolian_cxx/b.eo.h tests/eolian_cxx/c.eo.h tests/eolian_cxx/d.eo.h
101tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-eolian_cxx_test_cyclic.$(OBJEXT): tests/eolian_cxx/cyclic1.eo.hh tests/eolian_cxx/cyclic2.eo.hh tests/eolian_cxx/cyclic1.eo.c tests/eolian_cxx/cyclic2.eo.c tests/eolian_cxx/cyclic1.eo.h tests/eolian_cxx/cyclic2.eo.h
100 102
101tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-simple.$(OBJEXT): tests/eolian_cxx/simple.eo.c tests/eolian_cxx/simple.eo.h 103tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-simple.$(OBJEXT): tests/eolian_cxx/simple.eo.c tests/eolian_cxx/simple.eo.h
102tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-generic.$(OBJEXT): tests/eolian_cxx/generic.eo.c tests/eolian_cxx/generic.eo.h 104tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-generic.$(OBJEXT): tests/eolian_cxx/generic.eo.c tests/eolian_cxx/generic.eo.h
diff --git a/src/tests/eolian_cxx/cyclic1.eo b/src/tests/eolian_cxx/cyclic1.eo
new file mode 100644
index 0000000000..519a08e760
--- /dev/null
+++ b/src/tests/eolian_cxx/cyclic1.eo
@@ -0,0 +1,8 @@
1class Cyclic1
2{
3 methods {
4 foo {
5 return: Cyclic2;
6 }
7 }
8}
diff --git a/src/tests/eolian_cxx/cyclic2.eo b/src/tests/eolian_cxx/cyclic2.eo
new file mode 100644
index 0000000000..1fbed3f1f4
--- /dev/null
+++ b/src/tests/eolian_cxx/cyclic2.eo
@@ -0,0 +1,8 @@
1class Cyclic2
2{
3 methods {
4 foo {
5 return: Cyclic1;
6 }
7 }
8}
diff --git a/src/tests/eolian_cxx/eolian_cxx_suite.cc b/src/tests/eolian_cxx/eolian_cxx_suite.cc
index 562eb82ebf..c78a338fc3 100644
--- a/src/tests/eolian_cxx/eolian_cxx_suite.cc
+++ b/src/tests/eolian_cxx/eolian_cxx_suite.cc
@@ -12,6 +12,7 @@ static const Efl_Test_Case etc[] = {
12 { "Eolian-Cxx Address_of", eolian_cxx_test_address_of }, 12 { "Eolian-Cxx Address_of", eolian_cxx_test_address_of },
13 { "Eolian-Cxx Inheritance", eolian_cxx_test_inheritance }, 13 { "Eolian-Cxx Inheritance", eolian_cxx_test_inheritance },
14 { "Eolian-Cxx Binding", eolian_cxx_test_binding }, 14 { "Eolian-Cxx Binding", eolian_cxx_test_binding },
15 { "Eolian-Cxx Cyclic", eolian_cxx_test_cyclic },
15 { NULL, NULL } 16 { NULL, NULL }
16}; 17};
17 18
diff --git a/src/tests/eolian_cxx/eolian_cxx_suite.h b/src/tests/eolian_cxx/eolian_cxx_suite.h
index 451154a325..0d3ce69931 100644
--- a/src/tests/eolian_cxx/eolian_cxx_suite.h
+++ b/src/tests/eolian_cxx/eolian_cxx_suite.h
@@ -9,5 +9,6 @@ void eolian_cxx_test_generate(TCase* tc);
9void eolian_cxx_test_address_of(TCase* tc); 9void eolian_cxx_test_address_of(TCase* tc);
10void eolian_cxx_test_inheritance(TCase* tc); 10void eolian_cxx_test_inheritance(TCase* tc);
11void eolian_cxx_test_binding(TCase* tc); 11void eolian_cxx_test_binding(TCase* tc);
12void eolian_cxx_test_cyclic(TCase* tc);
12 13
13#endif /* _EOLIAN_CXX_SUITE_H */ 14#endif /* _EOLIAN_CXX_SUITE_H */
diff --git a/src/tests/eolian_cxx/eolian_cxx_test_cyclic.cc b/src/tests/eolian_cxx/eolian_cxx_test_cyclic.cc
new file mode 100644
index 0000000000..f338133c45
--- /dev/null
+++ b/src/tests/eolian_cxx/eolian_cxx_test_cyclic.cc
@@ -0,0 +1,21 @@
1#ifdef HAVE_CONFIG_H
2# include <config.h>
3#endif
4
5#include <Eo.hh>
6
7#include <cyclic1.eo.hh>
8#include <cyclic2.eo.hh>
9
10#include "eolian_cxx_suite.h"
11
12START_TEST(eolian_cxx_test_cyclic_call)
13{
14}
15END_TEST
16
17void
18eolian_cxx_test_cyclic(TCase* tc)
19{
20 tcase_add_test(tc, eolian_cxx_test_cyclic_call);
21}