]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Add tls runtime directives to decomp18.C [PR122983]
authorJakub Jelinek <jakub@redhat.com>
Thu, 4 Dec 2025 10:26:10 +0000 (11:26 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 4 Dec 2025 10:26:10 +0000 (11:26 +0100)
I haven't added the needed dg- directives to decomp18.C test
which uses thread_local and is a dg-do run test.

This adds those.

2025-12-03  Jakub Jelinek  <jakub@redhat.com>

PR target/122983
* g++.dg/cpp26/decomp18.C: Add dg-add-options tls and
dg-require-effective-target tls_runtime directives.

gcc/testsuite/g++.dg/cpp26/decomp18.C

index 86b9bf433223282240ff0d0ab40cd0d834b197c0..68dae3f223f64eb854e8365feab0dc07339412bb 100644 (file)
@@ -1,6 +1,8 @@
 // P1061R10 - Structured Bindings can introduce a Pack
 // { dg-do run { target c++11 } }
 // { dg-options "" }
+// { dg-add-options tls }
+// { dg-require-effective-target tls_runtime }
 
 struct S { int a, b, c; };
 namespace std {