]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: g++.dg/cpp2a/constinit16.C requires tls
authorChristophe Lyon <christophe.lyon@linaro.org>
Thu, 17 Apr 2025 08:33:33 +0000 (08:33 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Fri, 9 May 2025 08:45:34 +0000 (08:45 +0000)
This test is 'dg-do compile', so require tls instead of tls_runtime.

This enables it on targets such as arm-none-eabi configured with
--enable-threads=no.

gcc/testsuite/ChangeLog:

* g++.dg/cpp2a/constinit16.C: Require tls.

gcc/testsuite/g++.dg/cpp2a/constinit16.C

index dda81d50619eabd62659adfbd27be164c0061e9e..046e9aa7c6a7929dcc2fb690236f27c03ae8ca30 100644 (file)
@@ -2,7 +2,7 @@
 // { dg-do compile { target c++20 } }
 // { dg-add-options tls }
 // { dg-require-alias "" }
-// { dg-require-effective-target tls_runtime }
+// { dg-require-effective-target tls }
 // { dg-final { scan-assembler-not "_ZTH17mythreadlocalvar1" } }
 // { dg-final { scan-assembler "_ZTH17mythreadlocalvar2" } }
 // { dg-final { scan-assembler-not "_ZTH17mythreadlocalvar3" } }