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
[PATCH] RISC-V: Bugfix for unrecognizable insn for XTheadVector
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
gomp
/
pr78363-7.C
blob
4a0caee3dc3d3b49906de6a80f9635e36704011a
1
// { dg-do compile }
2
// { dg-require-effective-target c++11 }
3
// { dg-additional-options "-g" }
4
5
int main()
6
{
7
int n = 0;
8
9
#pragma omp target map(tofrom: n)
10
#pragma omp parallel for reduction (+: n)
11
for (int i = [](){ return 3; }(); i < 10; ++i)
12
n++;
13
14
return n;
15
}