diff options
Diffstat (limited to 'gcc/testsuite/gcc.dg/pthread-init-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/pthread-init-2.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pthread-init-2.c b/gcc/testsuite/gcc.dg/pthread-init-2.c new file mode 100644 index 000000000..3e8a17e23 --- /dev/null +++ b/gcc/testsuite/gcc.dg/pthread-init-2.c @@ -0,0 +1,13 @@ +/* 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" } */ +/* { dg-options "-Wextra -Wall -ansi -D_POSIX_C_SOURCE=199506L" { target { *-*-hpux* } } } */ + +#include "pthread-init-common.h" + |