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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [gomp/] [tls-3.C] - Blame information for rev 149

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

Line No. Rev Author Line
1 149 jeremybenn
// { dg-do compile }
2
// { dg-require-effective-target tls }
3
 
4
#define thr threadprivate
5
 
6
int i;
7
#pragma omp thr (i)
8
namespace N
9
{
10
  int j;
11
#pragma omp thr (j)
12
};
13
struct S
14
{
15
  static int s;
16
#pragma omp thr (s) // { dg-error "is not file, namespace or block scope" }
17
};
18
 
19
int
20
foo ()
21
{
22
  static int k;
23
#pragma omp thr (k)
24
  return k++ + S::s;
25
}

powered by: WebSVN 2.1.0

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