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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgomp/] [testsuite/] [libgomp.c++/] [master-1.C] - Blame information for rev 800

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

Line No. Rev Author Line
1 735 jeremybenn
// PR c++/24734
2
// { dg-do run }
3
 
4
extern "C" void abort ();
5
int i;
6
 
7
template void
8
foo ()
9
{
10
  #pragma omp parallel
11
    {
12
    #pragma omp master
13
      i++;
14
    }
15
}
16
 
17
int
18
main ()
19
{
20
  foo<0> ();
21
  if (i != 1)
22
    abort ();
23
  return 0;
24
}

powered by: WebSVN 2.1.0

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