1   /*
2    * Copyright (c) 2002, Intel Corporation. All rights reserved.
3    * Created by:  rolla.n.selbak REMOVE-THIS AT intel DOT com
4    * This file is licensed under the GPL license.  For the full content
5    * of this license, see the COPYING file at the top level of this
6    * source tree.
7 
8    Test this function is defined:
9 
10    pthread_create(pthread_t *restrict, const pthread_attr_t *restrict,
11    void *(*)(void *), void *restrict);
12    */
13 
14 #include <pthread.h>
15 #include "posixtest.h"
16 
thread_function(void * arg PTS_ATTRIBUTE_UNUSED)17 static void *thread_function(void *arg PTS_ATTRIBUTE_UNUSED)
18 {
19 	return NULL;
20 }
21 
dummy_func()22 static void dummy_func()
23 {
24 	pthread_t a_thread;
25 
26 	pthread_create(&a_thread, NULL, thread_function, NULL);
27 
28 	return;
29 }
30