forked from enlightenment/efl
eolian-cxx: Added cyclic compilation test
This commit is contained in:
parent
55243fba7d
commit
7f148feea8
|
@ -89,6 +89,7 @@ tests/eolian_cxx/generic.c \
|
|||
tests/eolian_cxx/name1_name2_type_generation.c \
|
||||
tests/eolian_cxx/eolian_cxx_test_inheritance.cc \
|
||||
tests/eolian_cxx/eolian_cxx_test_generate.cc \
|
||||
tests/eolian_cxx/eolian_cxx_test_cyclic.cc \
|
||||
tests/eolian_cxx/complex.c \
|
||||
tests/eolian_cxx/complex_cxx.cc \
|
||||
tests/eolian_cxx/eolian_cxx_suite.h
|
||||
|
@ -97,6 +98,7 @@ tests/eolian_cxx/name1_name2_type_generation.$(OBJEXT): tests/eolian_cxx/name1_n
|
|||
tests/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
|
||||
tests/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
|
||||
tests/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
|
||||
tests/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
|
||||
|
||||
tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-simple.$(OBJEXT): tests/eolian_cxx/simple.eo.c tests/eolian_cxx/simple.eo.h
|
||||
tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-generic.$(OBJEXT): tests/eolian_cxx/generic.eo.c tests/eolian_cxx/generic.eo.h
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
class Cyclic1
|
||||
{
|
||||
methods {
|
||||
foo {
|
||||
return: Cyclic2;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
class Cyclic2
|
||||
{
|
||||
methods {
|
||||
foo {
|
||||
return: Cyclic1;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -12,6 +12,7 @@ static const Efl_Test_Case etc[] = {
|
|||
{ "Eolian-Cxx Address_of", eolian_cxx_test_address_of },
|
||||
{ "Eolian-Cxx Inheritance", eolian_cxx_test_inheritance },
|
||||
{ "Eolian-Cxx Binding", eolian_cxx_test_binding },
|
||||
{ "Eolian-Cxx Cyclic", eolian_cxx_test_cyclic },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
|
|
|
@ -9,5 +9,6 @@ void eolian_cxx_test_generate(TCase* tc);
|
|||
void eolian_cxx_test_address_of(TCase* tc);
|
||||
void eolian_cxx_test_inheritance(TCase* tc);
|
||||
void eolian_cxx_test_binding(TCase* tc);
|
||||
void eolian_cxx_test_cyclic(TCase* tc);
|
||||
|
||||
#endif /* _EOLIAN_CXX_SUITE_H */
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
#ifdef HAVE_CONFIG_H
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
#include <Eo.hh>
|
||||
|
||||
#include <cyclic1.eo.hh>
|
||||
#include <cyclic2.eo.hh>
|
||||
|
||||
#include "eolian_cxx_suite.h"
|
||||
|
||||
START_TEST(eolian_cxx_test_cyclic_call)
|
||||
{
|
||||
}
|
||||
END_TEST
|
||||
|
||||
void
|
||||
eolian_cxx_test_cyclic(TCase* tc)
|
||||
{
|
||||
tcase_add_test(tc, eolian_cxx_test_cyclic_call);
|
||||
}
|
Loading…
Reference in New Issue