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] - Diff between revs 154 and 816

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;
 
 

powered by: WebSVN 2.1.0

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