Debian Codegraph @

gcc/testsuite/g++.dg/tls/thread_local14.C

raw
1 // PR c++/109164
2 // { dg-do run { target c++11 } }
3 // { dg-options "-O2" }
4 // { dg-add-options tls }
5 // { dg-require-effective-target tls_runtime }
6 // { dg-additional-sources "thread_local14-aux.cc" }
7
8 extern thread_local const int t;
9 bool bar (int);
10
11 bool
12 baz ()
13 {
14 while (1)
15 {
16 if (!bar (t))
17 return false;
18 }
19 }