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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [tls/] [init-1.C] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* Valid initializations.  */
2
/* { dg-require-effective-target tls } */
3
 
4
__thread int i = 42;
5
 
6
static int j;
7
__thread int *p = &j;
8
 
9
/* Note that this is valid in C++ (unlike C) as a run-time initialization.  */
10
int *q = &i;
11
 
12
/* Valid because "const int k" is an integral constant expression in C++.  */
13
__thread const int k = 42;
14
__thread const int l = k;

powered by: WebSVN 2.1.0

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