PR target/55146
[official-gcc.git] / gcc / testsuite / gcc.dg / pthread-init-1.c
blob8b600c3fb87bfcf2680b0e3589b5772d19af85aa
1 /* Ensure we get clean warning results when using the pthread
2 * initialization macros.
4 * Origin: Kaveh Ghazi (ghazi@caip.rutgers.edu) 9/27/2006.
5 */
7 /* { dg-do compile } */
8 /* { dg-require-effective-target pthread_h } */
9 /* { dg-options "-Wextra -Wall" } */
10 /* The RTP definition of PTHREAD_MUTEX_INITIALIZER is missing an
11 * initializer for mutexAttr.mutexAttrType. */
12 /* { dg-xfail-if "missing initializer" { vxworks_rtp } } */
14 #include "pthread-init-common.h"