blob: c710b6d183582c8ff5f621b164c4b641ba9f94f0 [file] [log] [blame]
// { dg-do compile }
// { dg-require-effective-target tls }
#define thr threadprivate
int i;
#pragma omp thr (i)
namespace N
{
int j;
#pragma omp thr (j)
};
struct S
{
static int s;
#pragma omp thr (s)
};
int S::s = 5;
int
foo ()
{
static int k;
#pragma omp thr (k)
return k++ + S::s;
}