aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-29 11:24:55 +0100
committerDaniel Kolesa <d.kolesa@osg.samsung.com>2015-05-29 11:24:55 +0100
commit83bbcc33ef6bf4d451b8ac86b67e85248726b69e (patch)
treead434260d25d3d31044c5d4078619855b14fdc32 /src
parenteolian: reserve __builtin_event_cb (diff)
downloadefl-83bbcc33ef6bf4d451b8ac86b67e85248726b69e.tar.gz
eolian: tests for extern struct/typedef not-generation
Diffstat (limited to 'src')
-rw-r--r--src/tests/eolian/data/struct.eo4
-rw-r--r--src/tests/eolian/data/typedef.eo2
-rw-r--r--src/tests/eolian/eolian_parsing.c2
3 files changed, 8 insertions, 0 deletions
diff --git a/src/tests/eolian/data/struct.eo b/src/tests/eolian/data/struct.eo
index 68b7bb5b7a..6b33952e4b 100644
--- a/src/tests/eolian/data/struct.eo
+++ b/src/tests/eolian/data/struct.eo
@@ -10,6 +10,10 @@ struct Another {
/* opaque struct */
struct Opaque;
+struct @extern Not.Generated {
+ field: int;
+}
+
class Struct {
methods {
foo {
diff --git a/src/tests/eolian/data/typedef.eo b/src/tests/eolian/data/typedef.eo
index ddace8e733..33c612a961 100644
--- a/src/tests/eolian/data/typedef.eo
+++ b/src/tests/eolian/data/typedef.eo
@@ -1,6 +1,8 @@
type Evas.Coord: int; /* Simple type definition */
type List_Objects: own(list<Eo *>*); /* A little more complex */
+type @extern Evas.Pants: float; /* not generated */
+
enum Enum.Bar
{
legacy: bar;
diff --git a/src/tests/eolian/eolian_parsing.c b/src/tests/eolian/eolian_parsing.c
index 70c40bbfb2..1d24434739 100644
--- a/src/tests/eolian/eolian_parsing.c
+++ b/src/tests/eolian/eolian_parsing.c
@@ -398,6 +398,8 @@ START_TEST(eolian_typedef)
fail_if(!eina_iterator_next(iter, (void**)&atype));
fail_if(!(type_name = eolian_type_name_get(atype)));
fail_if(strcmp(type_name, "List_Objects"));
+ /* not generated extern, skip */
+ fail_if(!eina_iterator_next(iter, (void**)&atype));
fail_if(eina_iterator_next(iter, (void**)&atype));
eolian_shutdown();