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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [copyin-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
// { dg-do compile }
2
// { dg-require-effective-target tls }
3
 
4
int i, j;
5
 
6
#pragma omp threadprivate (i)
7
 
8
void bar(void);
9
void foo(void)
10
{
11
  int k;
12
  extern int l;
13
  extern int m;
14
 
15
#pragma omp threadprivate (m)
16
 
17
  #pragma omp parallel copyin(i)
18
    bar();
19
  #pragma omp parallel copyin(j)        // { dg-error "threadprivate" }
20
    bar();
21
  #pragma omp parallel copyin(k)        // { dg-error "threadprivate" }
22
    bar();
23
  #pragma omp parallel copyin(l)        // { dg-error "threadprivate" }
24
    bar();
25
  #pragma omp parallel copyin(m)
26
    bar();
27
}

powered by: WebSVN 2.1.0

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