glib/glib/tests/include.c
Simon McVittie 29f2ced8eb various GLib tests: plug memory leaks
These don't really matter, since it's test code, but they do obscure
real leaks in the library.

Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=666115
Acked-by: Matthias Clasen <mclasen@redhat.com>
2011-12-14 12:40:16 +00:00

19 lines
259 B
C

/* Test case for bug 659866 */
#define _POSIX_C_SOURCE 0
#undef _GNU_SOURCE
#undef _XOPEN_SOURCE
#include <pthread.h>
#include <glib.h>
int
main (int argc, char *argv[])
{
GRWLock lock;
g_rw_lock_init (&lock);
g_rw_lock_clear (&lock);
return 0;
}