XFAIL test cases for OpenMP C++ lambda mapping issues.
Temporarily marks failing tests as expected failures for OpenMP C++ lambda mapping regressions.
This commit addresses regressions in OpenMP C++ target offloading related to lambda objects within aggregates, as reported in PR 127559. Because a previous commit caused these lambdas (and their by-reference captures) to be unmapped, leading to runtime crashes when dereferencing host stack addresses on the device, several test cases are now marked as ‘Expected Failure’ (XFAIL). New tests are also added to cover nested aggregates and constant array indices, further documenting the regression.
In Details
This commit, related to PR 127559, complements the fix for lambda object mapping within aggregates in OpenMP C++ target offloading. While the other commit attempts to resolve the issue, this one focuses on test case management. It marks existing and new test cases (libgomp.c++/target-lambda-6.C, g++.dg/gomp/target-lambda-3.C, and libgomp.c++/target-lambda-5.C) as XFAIL. This is due to a regression where lambda objects used as subobjects of aggregates, or their by-reference captures, are not mapped correctly. Specifically, code offloading execution dereferences a host stack address, caus…
- OpenMP C++ target offloading
- The capability within OpenMP to offload C++ code execution to a target device like a GPU, managed by the host system.
- Lambda object
- An object generated from a C++ lambda expression, representing an anonymous function.
- Aggregate
- A C++ class or struct that has no user-declared constructors, no private or protected non-static data members, no base classes, and no virtual functions. Examples include structs and arrays.
- Regression
- In software development, a regression is a defect introduced into previously working code, causing it to behave incorrectly.
- XFAIL
- In test suites, 'Expected Failure'. A test case marked as XFAIL is expected to fail, and the test runner considers it a pass if it fails as expected, and a failure if it unexpectedly passes.