/*
* This file and its contents are supplied under the terms of the
* Common Development and Distribution License ("CDDL"), version 1.0.
* You may only use this file in accordance with the terms of version
* 1.0 of the CDDL.
*
* A full copy of the text of the CDDL should have accompanied this
* source. A copy of the CDDL is also available via the Internet at
*/
/*
* Copyright 2016 Joyent, Inc.
*/
/*
* Test call_once(3C)
*/
#include <threads.h>
static void
co_once_func(void)
{
co_val++;
}
/*ARGSUSED*/
static int
{
return (0);
}
int
main(void)
{
int i;
for (i = 0; i < CO_NTHREADS; i++) {
}
for (i = 0; i < CO_NTHREADS; i++) {
}
return (0);
}