OpenMP Offloading Validation & Verification Suite; Official repository. We have migrated from bitbucket!! For documentation, results, publication and presentations, please check out our website ->
The test tests/5.0/target/test_target_uses_allocators_const.c
was checking that writing to x was successful even though the specification says that
the omp_const_mem_space:
Represents storage optimized for variables with constant values. The result of writing to this storage is unspecified.
Which means that if the variable x is not written, the result is also correct.
This PR seeks to solve this problem.
Is this test legal? For me, it does not make sense to evaluate "unspecified behavior". (We cannot say whether this test is passed or failed in any case.)
The test tests/5.0/target/test_target_uses_allocators_const.c was checking that writing to
x
was successful even though the specification says that theomp_const_mem_space
: Represents storage optimized for variables with constant values. The result of writing to this storage is unspecified. Which means that if the variablex
is not written, the result is also correct. This PR seeks to solve this problem.