URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* Valid initializations. */
|
/* Valid initializations. */
|
/* { dg-require-effective-target tls } */
|
/* { dg-require-effective-target tls } */
|
|
|
__thread int i = 42;
|
__thread int i = 42;
|
|
|
static int j;
|
static int j;
|
__thread int *p = &j;
|
__thread int *p = &j;
|
|
|
/* Note that this is valid in C++ (unlike C) as a run-time initialization. */
|
/* Note that this is valid in C++ (unlike C) as a run-time initialization. */
|
int *q = &i;
|
int *q = &i;
|
|
|
/* Valid because "const int k" is an integral constant expression in C++. */
|
/* Valid because "const int k" is an integral constant expression in C++. */
|
__thread const int k = 42;
|
__thread const int k = 42;
|
__thread const int l = k;
|
__thread const int l = k;
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.