Back to index

glibc  2.9
tst-locale2.c
Go to the documentation of this file.
00001 /* Test that the thread-local locale works right in the main thread
00002    when statically linked.  */
00003 
00004 #include "../argp/tst-argp1.c"
00005 
00006 #include <pthread.h>
00007 
00008 /* This is never called, just here to get pthreads linked in.  */
00009 void *
00010 useless (void *a)
00011 {
00012   pthread_t th;
00013   pthread_create (&th, 0, useless, a);
00014   return NULL;
00015 }