aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/eo/access/access_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/eo/access/access_main.c')
-rw-r--r--src/tests/eo/access/access_main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/eo/access/access_main.c b/src/tests/eo/access/access_main.c
index 61cd381167..aab8c14c7a 100644
--- a/src/tests/eo/access/access_main.c
+++ b/src/tests/eo/access/access_main.c
@@ -13,9 +13,10 @@ main(int argc, char *argv[])
(void) argv;
eo_init();
- Eo *obj = eo_add(INHERIT_CLASS, NULL);
+ Eo *obj;
+ eo_add(obj, INHERIT_CLASS, NULL);
- eo_do(obj, simple_a_set(1), inherit_prot_print());
+ eo_do(obj, simple_a_set(obj, 1), inherit_prot_print(obj));
Simple_Public_Data *pd = eo_data_scope_get(obj, SIMPLE_CLASS);
printf("Pub: %d\n", pd->public_x2);