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
libgomp testsuite: OpenACC C++ testing.
[official-gcc.git]
/
libgomp
/
testsuite
/
libgomp.oacc-c-c++-common
/
lib-30.c
blob
ce2bdb4473969a48784d0d141711218e3e4d1a8f
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_create
(
h
,
N
);
16
if
(!
d
)
17
abort
();
18
19
acc_delete
(
h
,
N
-
2
);
20
21
free
(
h
);
22
23
return
0
;
24
}
25
26
/* { dg-shouldfail "libgomp: \[\h+,256\] surrounds2 \[\h+,\+254\]" } */