OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [for-18.C] - Rev 154

Compare with Previous | Blame | View Log

// { dg-do compile }
extern int bar (int);

void
foo (void)
{
  int j, k = 1, l = 30, m = 4;
  long int o = 4;
  long long int p = 0;
#pragma omp for
  for (j = k; j <= l; j += m - 1)
    ;
#pragma omp for
  for (j = k; j <= l; j += (m - 1))
    ;
#pragma omp for
  for (j = k; j <= l; j += bar (m - 1))
    ;
#pragma omp for
  for (j = k; j <= l; j = j + m - 1)
    ;
#pragma omp for
  for (j = k; j <= l; j = j + (m - 1))
    ;
#pragma omp for
  for (j = k; j <= l; j = j + bar (m - 1))
    ;
#pragma omp for
  for (j = ({ int n; n = k; n; }); j <= l; j++)
    ;
#pragma omp for
  for (j = k; j <= ({ int n; n = l; n; }); j++)
    ;
#pragma omp for
  for (j = k; j <= l; j += ({ int n; n = 1; n; }))
    ;
#pragma omp for
  for (j = k; j <= l; j += m + 1)
    ;
#pragma omp for
  for (j = k; j <= l; j += o)
    ;
#pragma omp for
  for (j = k; j <= l; j = j + o)
    ;
#pragma omp for
  for (j = k; j <= l; j = o + 1 + j)
    ;
#pragma omp for
  for (j = k; j <= l; j = o + m + j)
    ;
#pragma omp for
  for (j = k; j <= l; j += o + p)
    ;
#pragma omp for
  for (j = k; j <= l; j = j + o + p)
    ;
#pragma omp for
  for (j = l; j >= k; j -= o)
    ;
#pragma omp for
  for (j = l; j >= k; j -= p)
    ;
#pragma omp for
  for (j = l; j >= k; j -= o + p)
    ;
}

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.