Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/vect/pr84556.cc @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
rev | line source |
---|---|
131 | 1 // PR c++/84556 |
2 // { dg-do run { target c++11 } } | |
3 // { dg-options "-O2 -fopenmp-simd" } | |
4 // { dg-additional-options "-mavx" { target avx_runtime } } | |
5 | |
6 int | |
7 main () | |
8 { | |
9 int y[8] = { 1, 2, 3, 4, 5, 6, 7, 8 }; | |
10 auto x = [&y] () | |
11 { | |
12 #pragma omp simd | |
13 for (int i = 0; i < 8; ++i) | |
14 y[i]++; | |
15 }; | |
16 x (); | |
17 x (); | |
18 for (int i = 0; i < 8; ++i) | |
19 if (y[i] != i + 3) | |
20 __builtin_abort (); | |
21 } |