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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [pr33372-1.C] - Blame information for rev 801

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c++/33372
2
// { dg-do compile }
3
// { dg-options "-fopenmp" }
4
 
5
template 
6
void f ()
7
{
8
  extern T n ();
9
#pragma omp parallel num_threads(n)     // { dg-error "num_threads expression must be integral" }
10
  ;
11
#pragma omp parallel for schedule(static, n)
12
  for (int i = 0; i < 10; i++)          // { dg-error "chunk size expression must be integral" }
13
    ;
14
}
15
 
16
void g ()
17
{
18
  f ();
19
}

powered by: WebSVN 2.1.0

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