URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [pr37533.C] - Rev 516
Compare with Previous | Blame | View Log
// PR c++/37533
// { dg-do compile }
// { dg-options "-fopenmp" }
template<int>
void
f1 ()
{
#pragma omp parallel for
for (int i = ""; i < 4; ++i) // { dg-error "invalid conversion from" }
;
}
template<int>
void
f2 ()
{
int i;
#pragma omp parallel for
for (i = ""; i < 4; ++i) // { dg-error "invalid conversion from" }
;
}
template<typename T>
void
f3 ()
{
#pragma omp parallel for
for (T i = ""; i < 4; ++i) // { dg-error "invalid conversion from" }
;
}
template<typename T>
void
f4 ()
{
T i;
#pragma omp parallel for
for (i = ""; i < 4; ++i) // { dg-error "invalid conversion from" }
;
}
void
bar ()
{
f1<0> (); // { dg-message "instantiated from here" }
f2<1> (); // { dg-message "instantiated from here" }
f3<int> (); // { dg-message "instantiated from here" }
f4<int> (); // { dg-message "instantiated from here" }
}