/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk
4 by Gustav Hartvigsson
Fixed a few problems.
1
#include "SimpleTypeSystem.h"
32 by Gustav Hartvigsson
* Added some compile options to the root CMakeLists.txt
2
#include "../test_macros.h"
3
4 by Gustav Hartvigsson
Fixed a few problems.
4
5
int main (char ** argc, int argv) {
32 by Gustav Hartvigsson
* Added some compile options to the root CMakeLists.txt
6
  
7
  int retval = 0;
8
  
9
  SObject * obj = s_object_new ();
10
  
11
  test_case (s_object_get_refcount (obj) == 1, "refcount == 1", retval);
12
  
13
  s_object_ref (obj);
14
  
15
  test_case (s_object_get_refcount (obj) == 2, "refcount == 2", retval);
16
  
17
  s_object_ref (obj);
18
  s_object_unref (obj);
19
  s_object_unref (obj);
20
  
21
  test_case (s_object_get_refcount (obj) == 1, "refcount == 1", retval);
22
  
23
  s_object_unref (obj);
24
  
4 by Gustav Hartvigsson
Fixed a few problems.
25
  return 0;
26
}