c++: prvalue of array type [PR111286]
[official-gcc.git] / gcc / testsuite / c-c++-common / gomp / pr104968.c
blob2977db2f433436d40c1a2b45739b78e4c359edef
1 /* { dg-additional-options "-fdump-tree-gimple-lineno" } */
3 int
4 main (void)
6 double a[10], a_h[10];
7 int myId = -1;
8 #pragma omp target map(tofrom:a)
9 #pragma omp taskloop simd shared(a) lastprivate(myId) /* { dg-line here } */
10 for(int i = 0 ; i < 10; i++) if (a[i] != a_h[i]) { }
13 /* { dg-final { scan-tree-dump-times "#pragma omp taskloop" 3 "gimple" } } */
14 /* { dg-final { scan-tree-dump-times "(?n)\\\[.*pr104968.c:[get-absolute-line '' here]:.*\\\] #pragma omp taskloop" 3 "gimple" } } */