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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [libgomp/] [testsuite/] [libgomp.c++/] [single-3.C] - Blame information for rev 859

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

Line No. Rev Author Line
1 273 jeremybenn
extern "C" void abort (void);
2
 
3
void
4
single (int a, int b)
5
{
6
  #pragma omp single copyprivate(a) copyprivate(b)
7
    {
8
      a = b = 5;
9
    }
10
 
11
  if (a != b)
12
    abort ();
13
}
14
 
15
int main()
16
{
17
  #pragma omp parallel
18
    single (1, 2);
19
 
20
  return 0;
21
}

powered by: WebSVN 2.1.0

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