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
Check CXXFLAGS, instead of CFLAGS, for NO_PIE_CFLAGS
[official-gcc.git]
/
libgomp
/
testsuite
/
libgomp.oacc-c-c++-common
/
lib-17.c
blob
d20ad6ab641880240edc40da8b4d51b1cca71b92
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
int
i
;
11
unsigned char
*
h
;
12
13
h
= (
unsigned char
*)
malloc
(
N
);
14
15
for
(
i
=
0
;
i
<
N
;
i
++)
16
{
17
h
[
i
] =
i
;
18
}
19
20
(
void
)
acc_copyin
(
h
,
N
);
21
22
acc_copyout
(
h
,
N
);
23
24
acc_copyout
(
h
,
N
);
25
26
free
(
h
);
27
28
return
0
;
29
}
30
31
/* { dg-output "\\\[\[0-9a-fA-FxX\]+,256\\\] is not mapped" } */
32
/* { dg-shouldfail "" } */