(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
tls/
vis-flag-hidden.c
       1  /* { dg-do compile } */
       2  /* { dg-require-effective-target fpic } */
       3  /* { dg-require-effective-target tls } */
       4  /* { dg-options "-O2 -fPIC -fdump-ipa-whole-program -fvisibility=hidden" } */
       5  
       6  
       7  // tls_model should be local-dynamic due to -fvisibility=hidden
       8  __thread int x;
       9  
      10  void reference() { x++; }
      11  
      12  /* { dg-final { scan-ipa-dump "Varpool flags: tls-local-dynamic" "whole-program" } } */