repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* recog.c (peephole2_optimize): Make it static.
[official-gcc.git]
/
libgomp
/
testsuite
/
libgomp.c
/
appendix-a
/
a.33.3.c
blob
0b7f0197ce9a6710425d40e9f091dfa37c09a122
1
/* { dg-do compile } */
2
3
#include <stdio.h>
4
#include <stdlib.h>
5
#include <omp.h>
6
omp_lock_t
*
7
new_lock
()
8
{
9
omp_lock_t
*
lock_ptr
;
10
#pragma omp single copyprivate(lock_ptr)
11
{
12
lock_ptr
= (
omp_lock_t
*)
malloc
(
sizeof
(
omp_lock_t
));
13
omp_init_lock
(
lock_ptr
);
14
}
15
return
lock_ptr
;
16
}