Add {symbol,call}_summary::get method and use it in HSA.
[official-gcc.git] / gcc / testsuite / g++.dg / tls / init-1.C
blob97867123a95f70f0aab0c8c10b46dea0b0d095cb
1 /* Valid initializations.  */
2 /* { dg-require-effective-target tls } */
4 __thread int i = 42;
6 static int j;
7 __thread int *p = &j;
9 /* Note that this is valid in C++ (unlike C) as a run-time initialization.  */
10 int *q = &i;
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;