| 1 |
/* Various Solaris versions have been known to have problems with the |
| 2 |
* pthread initialization macros when __STDC__ is defined. |
| 3 |
* |
| 4 |
* Origin: Kaveh Ghazi ([email protected]) 9/27/2006. |
| 5 |
*/ |
| 6 |
|
| 7 |
/* { dg-do compile } */ |
| 8 |
/* { dg-require-effective-target pthread_h } */ |
| 9 |
/* { dg-options "-Wextra -Wall -ansi" } */ |
| 10 |
/* We need to define _HPUX_SOURCE on hpux11.11 for id_t and spu_t types. */ |
| 11 |
/* { dg-options "-Wextra -Wall -ansi -D_HPUX_SOURCE" { target { *-*-hpux* } } } */ |
| 12 |
/* { dg-options "-Wextra -Wall -ansi -D_XOPEN_SOURCE=500" { target { powerpc-ibm-aix* } } } */ |
| 13 |
/* The definition of PTHREAD_MUTEX_INITIALIZER is missing an initializer for |
| 14 |
mutexAttr.mutexAttrType in kernel mode for various VxWorks versions. */ |
| 15 |
/* { dg-xfail-if "missing initializer" { vxworks_kernel } } */ |
| 16 |
|
| 17 |
#include "pthread-init-common.h" |
| 18 |
|