summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/gomp/pr24849.C
blob: f3564371992015a5a60618fbaf09d39bf56ae326 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */

template<typename T> struct Healpix_Map {
  T *map;
  int npix_;

  void Import_nograde (const Healpix_Map<T> &orig) {
#pragma omp parallel
{
    int m;
#pragma omp for schedule (dynamic)
    for (m=0; m<npix_; ++m) map[m] = orig.map[m];
}
    }
  };

void foo(Healpix_Map<int> &a, Healpix_Map<int> &b) {
  a.Import_nograde(b);
  }