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.5.1/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [pr33372-1.C] - Rev 325
Go to most recent revision | Compare with Previous | Blame | View Log
// PR c++/33372
// { dg-do compile }
// { dg-options "-fopenmp" }
template <typename T>
void f ()
{
extern T n ();
#pragma omp parallel num_threads(n) // { dg-error "num_threads expression must be integral" }
;
#pragma omp parallel for schedule(static, n)
for (int i = 0; i < 10; i++) // { dg-error "chunk size expression must be integral" }
;
}
void g ()
{
f<int> ();
}
Go to most recent revision | Compare with Previous | Blame | View Log