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-6.C
blob
e49ef0628d04ef8630729122b0ae9e4740d6eebe
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
#pragma omp parallel
9
#pragma omp master
10
#pragma omp task shared (n)
11
for (int i = [](){ return 3; }(); i < 10; ++i)
12
n = i;
13
#pragma omp taskwait
14
if (n != 7)
15
__builtin_abort ();
16
}