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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [tls/] [diag-1.C] - Blame information for rev 718

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

Line No. Rev Author Line
1 693 jeremybenn
// Valid __thread specifiers.
2
// { dg-require-effective-target tls }
3
 
4
__thread int g1;
5
extern __thread int g2;
6
static __thread int g3;
7
 
8
void foo()
9
{
10
  extern __thread int l1;
11
  static __thread int l2;
12
}
13
 
14
struct A {
15
  static __thread int i;
16
};
17
 
18
__thread int A::i = 42;
19
 
20
template  struct B {
21
  static __thread T t;
22
};
23
 
24
template 
25
__thread T B::t = 42;
26
 
27
void bar ()
28
{
29
  int j = B::t;
30
  int k = B::t;
31
}

powered by: WebSVN 2.1.0

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