aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pthread-init-2.c
blob: c934fb525f99a43d205fd143db615eabada53871 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* Various Solaris versions have been known to have problems with the
 * pthread initialization macros when __STDC__ is defined.
 *
 * Origin: Kaveh Ghazi (ghazi@caip.rutgers.edu) 9/27/2006.
 */

/* { dg-do compile } */
/* { dg-require-effective-target pthread_h } */
/* { dg-options "-Wextra -Wall -ansi" } */
/* We need to define _HPUX_SOURCE on hpux11.11 for id_t and spu_t types.  */
/* { dg-options "-Wextra -Wall -ansi -D_HPUX_SOURCE" { target { *-*-hpux* } } } */
/* { dg-options "-Wextra -Wall -ansi -D_XOPEN_SOURCE=500" { target { powerpc-ibm-aix* } } } */
/* The definition of PTHREAD_MUTEX_INITIALIZER is missing an initializer for
   mutexAttr.mutexAttrType in kernel mode for various VxWorks versions.  */
/* { dg-xfail-if "missing initializer" { vxworks_kernel } } */

#include "pthread-init-common.h"