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

Subversion Repositories openrisc

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