projects
/
profile
/
ivi
/
eobj.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Eobj: Added more function override tests.
[profile/ivi/eobj.git]
/
examples
/
function_overrides
/
main.c
diff --git
a/examples/function_overrides/main.c
b/examples/function_overrides/main.c
index
b026a57
..
221237c
100644
(file)
--- a/
examples/function_overrides/main.c
+++ b/
examples/function_overrides/main.c
@@
-29,6
+29,14
@@
main(int argc, char *argv[])
eobj_unref(obj);
+ obj = eobj_add(INHERIT2_CLASS, NULL);
+ eobj_do(obj, INHERIT2_PRINT());
+ eobj_unref(obj);
+
+ obj = eobj_add(SIMPLE_CLASS, NULL);
+ fail_if(eobj_do(obj, INHERIT2_PRINT2()));
+ eobj_unref(obj);
+
eobj_shutdown();
return 0;
}