Regrettably, I forgot to disable tests for omp_cgroup_mem_alloc,
omp_pteam_mem_alloc, and omp_thread_mem_alloc in r17-6101-g440449a6671901,
which makes those cases ill-formed.
This patch simply disables those cases, as once again, they are ill-formed.
PR testsuite/128811
gcc/testsuite/ChangeLog:
* g++.dg/gomp/allocate-handles-2.C: Don't test ill-formed cases.
Signed-off-by: Waffl3x <[email protected]>
---
gcc/testsuite/g++.dg/gomp/allocate-handles-2.C | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/gcc/testsuite/g++.dg/gomp/allocate-handles-2.C
b/gcc/testsuite/g++.dg/gomp/allocate-handles-2.C
index 89949ee0fef..338cc5b325d 100644
--- a/gcc/testsuite/g++.dg/gomp/allocate-handles-2.C
+++ b/gcc/testsuite/g++.dg/gomp/allocate-handles-2.C
@@ -17,6 +17,11 @@ void test_predefined_alloc()
#pragma omp allocate(a) allocator(Alloc)
}
+/* These cases are disallowed for static lifetime variables. */
+template<> void test_predefined_alloc<omp_cgroup_mem_alloc>() {}
+template<> void test_predefined_alloc<omp_pteam_mem_alloc>() {}
+template<> void test_predefined_alloc<omp_thread_mem_alloc>() {}
+
/* Because this is written to work as far back as c++11 it is a little bit
crusty. It is metaprogrammed to automatically test the full ranges
specified above. */
--
2.55.0