URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [obj-c++.dg/] [tls/] [init-1.mm] - Rev 706
Go to most recent revision | Compare with Previous | Blame | View Log
/* Invalid initializations. */
/* { dg-require-effective-target tls } */
__thread int i = 42;
static int j;
__thread int *p = &j;
/* Note that this is valid in C++ (unlike C) as a run-time initialization. */
int *q = &i;
/* Valid because "const int k" is an integral constant expression in C++. */
__thread const int k = 42;
__thread const int l = k;
Go to most recent revision | Compare with Previous | Blame | View Log