1 // { dg-do compile }
2 typedef struct { } __fsid_t;
3 typedef unsigned long int pthread_t;
4 extern "C" {
pthread_equal(pthread_t __thread1,pthread_t __thread2)5   extern __inline __attribute__ ((__gnu_inline__)) int pthread_equal (pthread_t __thread1, pthread_t __thread2) throw ()   {
6       return 0;
7   }
8 }
9 typedef pthread_t __gthread_t;
10 static __typeof (pthread_equal)      __gthrw_pthread_equal __attribute__ ((__weakref__ ("pthread_equal")));
11 
__gthread_equal(__gthread_t __t1,__gthread_t __t2)12 static inline int __gthread_equal (__gthread_t __t1, __gthread_t __t2)
13 {
14   return __gthrw_pthread_equal (__t1, __t2);
15 }
16 
17