(root)/
gcc-13.2.0/
gcc/
testsuite/
g++.dg/
tls/
thread_local14.C
// PR c++/109164
// { dg-do run { target c++11 } }
// { dg-options "-O2" }
// { dg-add-options tls }
// { dg-require-effective-target tls_runtime }
// { dg-additional-sources "thread_local14-aux.cc" }

extern thread_local const int t;
bool bar (int);

bool
baz ()
{
  while (1)
    {
      if (!bar (t))
        return false;
    }
}