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/] [tpl-parallel-2.C] - Rev 816

Compare with Previous | Blame | View Log

// { dg-do compile }

template<typename T>
struct S
{
  T n;
  void test();
  void work();
};

template<typename T>
void S<T>::test()
{
  #pragma omp parallel num_threads(n)   // { dg-error "must be integral" }
    work();
}

template struct S<int>;
template struct S<long>;
template struct S<float>;       // { dg-error "instantiated from here" }

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.