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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 273 jeremybenn
// { dg-do run }
2
// { dg-additional-sources pr24455-1.C }
3
// { dg-require-effective-target tls_runtime }
4
 
5
extern "C" void abort (void);
6
 
7
extern int i;
8
#pragma omp threadprivate(i)
9
 
10
int main()
11
{
12
  i = 0;
13
 
14
#pragma omp parallel default(none) num_threads(10) copyin(i)
15
    {
16
      i++;
17
#pragma omp barrier
18
      if (i != 1)
19
        abort ();
20
    }
21
 
22
    return 0;
23
}

powered by: WebSVN 2.1.0

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