repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix type compatibility for types with flexible array member 2/2 [PR113688,PR114713...
[gcc.git]
/
libgomp
/
testsuite
/
libgomp.oacc-c-c++-common
/
lib-31.c
blob
25ce5a95977f858a896e0a76300d87128ca52473
1
/* { dg-do run } */
2
3
#include <stdlib.h>
4
#include <openacc.h>
5
6
int
7
main
(
int
argc
,
char
**
argv
)
8
{
9
const int
N
=
256
;
10
unsigned char
*
h
;
11
void
*
d
;
12
13
h
= (
unsigned char
*)
malloc
(
N
);
14
15
d
=
acc_present_or_create
(
h
,
N
);
16
if
(!
d
)
17
abort
();
18
19
if
(
acc_is_present
(
h
,
1
) !=
1
)
20
abort
();
21
22
acc_delete
(
h
,
N
);
23
24
free
(
h
);
25
26
return
0
;
27
}