2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / tls / init-1.C
blob74f7641fe27469a70050fa57330a31d970e5ad3e
1 /* Valid initializations.  */
3 __thread int i = 42;
5 static int j;
6 __thread int *p = &j;
8 /* Note that this is valid in C++ (unlike C) as a run-time initialization.  */
9 int *q = &i;
11 /* Valid because "const int k" is an integral constant expression in C++.  */
12 __thread const int k = 42;
13 __thread const int l = k;