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
[PR testsuite/65205, libgomp/65993] Fix dg-shouldfail usage in OpenACC libgomp tests
[official-gcc.git]
/
libgomp
/
testsuite
/
libgomp.oacc-c-c++-common
/
lib-18.c
blob
a3cb59a0dab8483ae67f5964631a4ed95a8faa73
1
/* { dg-do run } */
2
3
#include <stdlib.h>
4
#include <openacc.h>
5
6
#include <stdio.h>
7
8
int
9
main
(
int
argc
,
char
**
argv
)
10
{
11
const int
N
=
256
;
12
int
i
;
13
unsigned char
*
h
;
14
void
*
d
;
15
16
h
= (
unsigned char
*)
malloc
(
N
);
17
18
for
(
i
=
0
;
i
<
N
;
i
++)
19
{
20
h
[
i
] =
i
;
21
}
22
23
d
=
acc_copyin
(
h
,
N
);
24
25
acc_free
(
d
);
26
27
acc_copyout
(
h
,
N
);
28
29
free
(
h
);
30
31
return
0
;
32
}
33
34
/* { dg-output "\\\[\[0-9a-fA-FxX\]+,256\\\] is not mapped" } */
35
/* { dg-shouldfail "" } */