forked from enlightenment/efl
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:
parent
a1bd7a7499
commit
6124039c8f
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
class Ns.Name {
|
||||
legacy_prefix: null;
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
class Ns.Name.Other {
|
||||
legacy_prefix: null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue