blob: e32565588c816bb5ee4d8d590ae8e05e608b8dc4 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-require-effective-target fpic } */
/* { dg-require-effective-target tls } */
/* { dg-options "-O2 -fPIC -fdump-ipa-whole-program" } */
// tls_model should be global-dynamic due to explicitly specified attribute
__attribute__((visibility("hidden")))
__attribute__((tls_model("global-dynamic")))
__thread int x;
void reference() { x++; }
/* { dg-final { scan-ipa-dump "Varpool flags: tls-global-dynamic" "whole-program" } } */