projects
/
platform
/
upstream
/
glib.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
GLib: implement GMutex natively on Linux
[platform/upstream/glib.git]
/
glib
/
tests
/
include.c
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
9
static void
10
test_rwlock (void)
11
{
12
GRWLock lock;
13
14
g_rw_lock_init (&lock);
15
g_rw_lock_clear (&lock);
16
}
17
18
int
19
main (int argc, char *argv[])
20
{
21
g_test_init (&argc, &argv, NULL);
22
23
g_test_add_func ("/include/rwlock", test_rwlock);
24
25
return g_test_run ();
26
}