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
Drop Z from X + Z < Y + Z
[official-gcc.git]
/
libgomp
/
testsuite
/
libgomp.oacc-c-c++-common
/
lib-50.c
blob
e8294e1af365c8e7dbac5ad111f8af2f4e2404f5
1
/* { dg-do run } */
2
/* { dg-skip-if "" { *-*-* } { "*" } { "-DACC_MEM_SHARED=0" } } */
3
4
#include <stdlib.h>
5
#include <openacc.h>
6
7
int
8
main
(
int
argc
,
char
**
argv
)
9
{
10
const int
N
=
256
;
11
unsigned char
*
h
;
12
void
*
d
;
13
14
h
= (
unsigned char
*)
malloc
(
N
);
15
16
d
=
acc_malloc
(
N
);
17
18
acc_map_data
(
h
,
d
,
N
);
19
20
if
(
acc_is_present
(
h
,
N
) !=
1
)
21
abort
();
22
23
acc_unmap_data
(
h
);
24
25
acc_free
(
d
);
26
27
free
(
h
);
28
29
return
0
;
30
}