28 lines
454 B
C
28 lines
454 B
C
#ifdef HAVE_CONFIG_H
|
|
# include <config.h>
|
|
#endif
|
|
|
|
#include "Eo.h"
|
|
#include "access_simple.h"
|
|
#include "access_inherit.h"
|
|
|
|
int
|
|
main(int argc, char *argv[])
|
|
{
|
|
(void) argc;
|
|
(void) argv;
|
|
eo_init();
|
|
|
|
Eo *obj = eo_add(INHERIT_CLASS, NULL);
|
|
|
|
eo_do(obj, simple_a_set(1), inherit_prot_print());
|
|
|
|
Simple_Public_Data *pd = eo_data_get(obj, SIMPLE_CLASS);
|
|
printf("Pub: %d\n", pd->public_x2);
|
|
|
|
eo_unref(obj);
|
|
eo_shutdown();
|
|
return 0;
|
|
}
|
|
|