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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 693 jeremybenn
// PR c/51360
2
// { dg-do compile }
3
// { dg-options "-Wunused -W -fopenmp" }
4
 
5
template 
6
void
7
foo (T a, T b, T c, T d)
8
{
9
  T m, n, o, p, i;
10
  m = 6;
11
  n = 1;
12
  o = 5;
13
  p = 1;
14
  a = 6;
15
  b = 1;
16
  c = 5;
17
  d = 1;
18
  #pragma omp parallel for num_threads (m) if (n) schedule (static, o)
19
  for (i = 0; i < 10; i++)
20
    ;
21
  #pragma omp parallel for num_threads (a) if (b) schedule (static, c)
22
  for (i = 0; i < 10; i++)
23
    ;
24
  #pragma omp task final (p)
25
    ;
26
  #pragma omp task final (d)
27
    ;
28
}
29
 
30
void
31
bar ()
32
{
33
  foo (0, 0, 0, 0);
34
}

powered by: WebSVN 2.1.0

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