* recog.c (peephole2_optimize): Make it static.
[official-gcc.git] / libgomp / testsuite / libgomp.c / appendix-a / a.33.3.c
blob0b7f0197ce9a6710425d40e9f091dfa37c09a122
1 /* { dg-do compile } */
3 #include <stdio.h>
4 #include <stdlib.h>
5 #include <omp.h>
6 omp_lock_t *
7 new_lock ()
9 omp_lock_t *lock_ptr;
10 #pragma omp single copyprivate(lock_ptr)
12 lock_ptr = (omp_lock_t *) malloc (sizeof (omp_lock_t));
13 omp_init_lock (lock_ptr);
15 return lock_ptr;