OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [pr24849.C] - Rev 816

Compare with Previous | Blame | View Log

/* { 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);
  }

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.