1/* Test case for bug 659866 */
2
3#define _POSIX_C_SOURCE 199309L
4#undef _GNU_SOURCE
5#undef _XOPEN_SOURCE
6#include <pthread.h>
7#include <glib.h>
8
9static void
10test_rwlock (void)
11{
12 GRWLock lock;
13
14 g_rw_lock_init (rw_lock: &lock);
15 g_rw_lock_clear (rw_lock: &lock);
16}
17
18int
19main (int argc, char *argv[])
20{
21 g_test_init (argc: &argc, argv: &argv, NULL);
22
23 g_test_add_func (testpath: "/include/rwlock", test_func: test_rwlock);
24
25 return g_test_run ();
26}
27

source code of gtk/subprojects/glib/glib/tests/include.c