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
This commit is contained in:
Felipe Magno de Almeida 2016-05-04 21:13:48 -03:00
parent a1bd7a7499
commit 6124039c8f
5 changed files with 37 additions and 4 deletions

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -0,0 +1,4 @@
class Ns.Name {
legacy_prefix: null;
}

View File

@ -0,0 +1,4 @@
class Ns.Name.Other {
legacy_prefix: null;
}