forked from enlightenment/efl
eolian: tests for extern struct/typedef not-generation
This commit is contained in:
parent
3efca75615
commit
83bbcc33ef
|
@ -10,6 +10,10 @@ struct Another {
|
|||
/* opaque struct */
|
||||
struct Opaque;
|
||||
|
||||
struct @extern Not.Generated {
|
||||
field: int;
|
||||
}
|
||||
|
||||
class Struct {
|
||||
methods {
|
||||
foo {
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue