summaryrefslogtreecommitdiff
path: root/nptl/tst-locale1.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-12-03 06:01:38 +0000
committerUlrich Drepper <drepper@redhat.com>2002-12-03 06:01:38 +0000
commita3a238a978a7e5bb6a543b808e11442a102ee74c (patch)
treedb1425bd57a284dc12c2f074f7f01820ff810a90 /nptl/tst-locale1.c
parentfa9a4ff0ba0b66f544bcd69e6bd0929f0a7fc7ff (diff)
Test use of locale functions in statically linked apps.
Diffstat (limited to 'nptl/tst-locale1.c')
-rw-r--r--nptl/tst-locale1.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/nptl/tst-locale1.c b/nptl/tst-locale1.c
new file mode 100644
index 0000000000..3c88e729ba
--- /dev/null
+++ b/nptl/tst-locale1.c
@@ -0,0 +1,13 @@
+/* Test that the thread-local locale works right in the main thread
+ when statically linked. */
+
+#include "../locale/tst-C-locale.c"
+
+#include <pthread.h>
+
+/* This is never called, just here to get pthreads linked in. */
+void
+useless (void)
+{
+ pthread_create (0, 0, 0, 0);
+}