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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [tpl-master-1.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++/24734
2
// { dg-do compile }
3
// { dg-options "-fopenmp -fdump-tree-gimple" }
4
 
5
int i;
6
 
7
template  void f1 ()
8
{
9
  #pragma omp ordered
10
    i++;
11
}
12
 
13
template  void f2 (bool p)
14
{
15
  if (p)
16
    {
17
      #pragma omp master
18
        i++;
19
    }
20
}
21
 
22
void f3 ()
23
{
24
  f1<0> ();
25
  f2<0> (true);
26
}
27
 
28
// { dg-final { scan-tree-dump-times "#pragma omp ordered" 1 "gimple" } }
29
// { dg-final { scan-tree-dump-times "#pragma omp master" 1 "gimple" } }
30
// { dg-final { cleanup-tree-dump "gimple" } }

powered by: WebSVN 2.1.0

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