Import Upstream version 2.72.4
This commit is contained in:
commit
4ef3ff9793
2003 changed files with 1332420 additions and 0 deletions
26
glib/tests/include.c
Normal file
26
glib/tests/include.c
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
/* Test case for bug 659866 */
|
||||
|
||||
#define _POSIX_C_SOURCE 199309L
|
||||
#undef _GNU_SOURCE
|
||||
#undef _XOPEN_SOURCE
|
||||
#include <pthread.h>
|
||||
#include <glib.h>
|
||||
|
||||
static void
|
||||
test_rwlock (void)
|
||||
{
|
||||
GRWLock lock;
|
||||
|
||||
g_rw_lock_init (&lock);
|
||||
g_rw_lock_clear (&lock);
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
g_test_init (&argc, &argv, NULL);
|
||||
|
||||
g_test_add_func ("/include/rwlock", test_rwlock);
|
||||
|
||||
return g_test_run ();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue