Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/gomp/pr78363-4.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
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 parallel | |
10 #pragma omp master | |
11 #pragma omp parallel | |
12 #pragma omp master | |
13 #pragma omp parallel for reduction (+: n) | |
14 for (int i = [](){ return 3; }(); i < 10; ++i) | |
15 n++; | |
16 | |
17 return n; | |
18 } |