mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-04-15 03:58:04 +02:00
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>
19 lines
259 B
C
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;
|
|
}
|