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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [pr35078.C] - Blame information for rev 315

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

Line No. Rev Author Line
1 301 jeremybenn
// PR c++/35078
2
// { dg-do compile }
3
// { dg-options "-fopenmp" }
4
 
5
template void
6
foo ()
7
{
8
#pragma omp parallel for
9
  for (int& i = 0; i < 10; ++i)        // { dg-error "invalid type for iteration variable" }
10
    ;
11
}
12
 
13
void
14
bar ()
15
{
16
  int j = 0;
17
#pragma omp parallel for
18
  for (int& i = j; i < 10; ++i)        // { dg-error "invalid type for iteration variable" }
19
    ;
20
}

powered by: WebSVN 2.1.0

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