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/] [for-15.C] - Rev 154

Go to most recent revision | Compare with Previous | Blame | View Log

// PR c++/24512
// { dg-do compile }

template<typename T> void foo ()
{
#pragma omp for
  for (int i = 0; i < 10; i++);

#pragma omp for
  for (int i = 0; i < 10; i++);

#pragma omp for
  for (T j = 0; j < 10; j++);

#pragma omp for
  for (T j = 0; j < 10; j++);

#pragma omp parallel for
  for (int k = 0; k < 10; k++);

#pragma omp parallel for
  for (int k = 0; k < 10; k++);

#pragma omp parallel for
  for (T l = 0; l < 10; l++);

#pragma omp parallel for
  for (T l = 0; l < 10; l++);
}

void bar ()
{
  foo<int> ();
  foo<long> ();
}

Go to most recent revision | 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.