]> git.draconx.ca Git - gob-dx.git/blob - src/str_test.c
Build with libtool.
[gob-dx.git] / src / str_test.c
1 #include "str.h"
2
3 int
4 main (void)
5 {
6   g_type_init ();
7
8   int the_answer = 42;
9   char *stupid_pointer = "ug";
10
11   // This works fine.
12   Str *test_good = (Str *) (str_new ("%d", the_answer));
13   test_good = test_good;
14
15   // This gets a warning thanks to our function attribute.
16   Str *test_bad = (Str *) (str_new ("%d", stupid_pointer));
17   test_bad = test_bad;
18
19   return 0;
20 }