repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[RISCV] Rename a lambda to have plural nouns to reflect that it contains a loop. NFC
[llvm-project.git]
/
offload
/
test
/
offloading
/
lone_target_exit_data.c
blob
73a5ffa2a1c2b13c70bb385c778d3b0293b86c11
1
// Check that a target exit data directive behaves correctly when the runtime
2
// has not yet been initialized.
3
4
// RUN: %libomptarget-compile-run-and-check-generic
5
6
#include <stdio.h>
7
8
int
main
() {
9
// CHECK: x = 98
10
int
x
=
98
;
11
#pragma omp target exit data map(from : x)
12
printf
(
"x = %d
\n
"
,
x
);
13
return
0
;
14
}