From: Felipe Magno de Almeida Date: Thu, 5 May 2016 00:13:48 +0000 (-0300) Subject: eolian-cxx: Added test for the removal of the .Base class requirement X-Git-Tag: upstream/1.20.0~6492 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6124039c8f11936f78c08fd9b8dfd9c128c05ea2;p=platform%2Fupstream%2Fefl.git eolian-cxx: Added test for the removal of the .Base class requirement Test creates class with the same name as the namespace of another class --- diff --git a/src/Makefile_Eolian_Cxx.am b/src/Makefile_Eolian_Cxx.am index 5132a18..2e08a84 100644 --- a/src/Makefile_Eolian_Cxx.am +++ b/src/Makefile_Eolian_Cxx.am @@ -93,8 +93,8 @@ tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-b.$(OBJEXT): tests/eolian_cxx tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-c.$(OBJEXT): tests/eolian_cxx/c.eo.c tests/eolian_cxx/c.eo.h tests/eolian_cxx/tests_eolian_cxx_eolian_cxx_suite-d.$(OBJEXT): tests/eolian_cxx/d.eo.c tests/eolian_cxx/d.eo.h -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/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/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 CLEANFILES += \ tests/eolian_cxx/callback.eo.hh \ @@ -116,7 +116,16 @@ tests/eolian_cxx/d.eo.hh tests/eolian_cxx/d.eo.impl.hh tests/eolian_cxx/d.eo.c t tests/eolian_cxx/name_name.eo.hh \ tests/eolian_cxx/name_name.eo.c \ tests/eolian_cxx/name_name.eo.h \ -tests/eolian_cxx/name_name.eo.impl.hh +tests/eolian_cxx/name_name.eo.impl.hh \ +tests/eolian_cxx/ns_name.eo.hh \ +tests/eolian_cxx/ns_name.eo.c \ +tests/eolian_cxx/ns_name.eo.h \ +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_eolian_cxx_suite_CXXFLAGS = \ -I$(top_builddir)/src/lib/efl \ @@ -147,7 +156,9 @@ tests/eolian_cxx/a.eo \ tests/eolian_cxx/b.eo \ tests/eolian_cxx/c.eo \ tests/eolian_cxx/d.eo \ -tests/eolian_cxx/name_name.eo +tests/eolian_cxx/name_name.eo \ +tests/eolian_cxx/ns_name.eo \ +tests/eolian_cxx/ns_name_other.eo include Makefile_Eolian_Cxx_Helper.am diff --git a/src/tests/eolian_cxx/name_name.c b/src/tests/eolian_cxx/name_name.c index 50b65d9..a4e9c06 100644 --- a/src/tests/eolian_cxx/name_name.c +++ b/src/tests/eolian_cxx/name_name.c @@ -4,5 +4,15 @@ struct Name_Name_Data {}; typedef struct Name_Name_Data Name_Name_Data; +struct Ns_Name_Data {}; +typedef struct Ns_Name_Data Ns_Name_Data; + +struct Ns_Name_Other_Data {}; +typedef struct Ns_Name_Other_Data Ns_Name_Other_Data; + #include "name_name.eo.h" #include "name_name.eo.c" +#include "ns_name.eo.h" +#include "ns_name.eo.c" +#include "ns_name_other.eo.h" +#include "ns_name_other.eo.c" diff --git a/src/tests/eolian_cxx/name_name_cxx.cc b/src/tests/eolian_cxx/name_name_cxx.cc index 9908754..d5669bc 100644 --- a/src/tests/eolian_cxx/name_name_cxx.cc +++ b/src/tests/eolian_cxx/name_name_cxx.cc @@ -3,4 +3,8 @@ #include "name_name.eo.h" #include "name_name.eo.hh" +#include "ns_name.eo.h" +#include "ns_name.eo.hh" +#include "ns_name_other.eo.h" +#include "ns_name_other.eo.hh" diff --git a/src/tests/eolian_cxx/ns_name.eo b/src/tests/eolian_cxx/ns_name.eo new file mode 100644 index 0000000..50ab890 --- /dev/null +++ b/src/tests/eolian_cxx/ns_name.eo @@ -0,0 +1,4 @@ +class Ns.Name { + legacy_prefix: null; +} + diff --git a/src/tests/eolian_cxx/ns_name_other.eo b/src/tests/eolian_cxx/ns_name_other.eo new file mode 100644 index 0000000..64a563f --- /dev/null +++ b/src/tests/eolian_cxx/ns_name_other.eo @@ -0,0 +1,4 @@ +class Ns.Name.Other { + legacy_prefix: null; +} +