87bbffd847baf054f24202c219997a10e2f90c85
[mono.git] / mcs / tools / cilc / demo.c
1 #include "demo.h"
2
3 int main () {
4   DemoTest *my_test;
5   
6   //run a static method
7   demo_test_static_method ();
8
9   //create an object instance
10   my_test = demo_test_new ();
11   
12   //run an instance method
13   demo_test_increment (my_test);
14
15   //run an instance method with arguments
16   demo_test_add_number (my_test, 2);
17
18   //run an instance method with arguments
19   demo_test_set_title (my_test, "hello from c");
20   
21   //TODO: return value
22   //g_printf ("returned string: %s\n", demo_test_get_title (my_test));
23
24   //TODO: gobject-style DEMO_IS_TEST etc. macros
25
26   return 1;
27 }