view gcc/testsuite/gcc.dg/pthread-init-1.c @ 145:1830386684a0

gcc-9.2.0
author anatofuz
date Thu, 13 Feb 2020 11:34:05 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* Ensure we get clean warning results when using the pthread
 * initialization macros.
 *
 * Origin: Kaveh Ghazi (ghazi@caip.rutgers.edu) 9/27/2006.
 */

/* { dg-do compile } */
/* { dg-require-effective-target pthread_h } */
/* { dg-options "-Wextra -Wall" } */
/* The RTP definition of PTHREAD_MUTEX_INITIALIZER is missing an
 * initializer for mutexAttr.mutexAttrType.  */
/* { dg-xfail-if "missing initializer" { vxworks_rtp } } */

#include "pthread-init-common.h"