OpenMP-Validation-and-Verification / OpenMP_VV

OpenMP Offloading Validation & Verification Suite; Official repository. We have migrated from bitbucket!! For documentation, results, publication and presentations, please check out our website ->
https://crpl.cis.udel.edu/ompvvsollve/
Other
54 stars 19 forks source link

Tests to check lvalue expressions in depend clause. #825

Closed rjenaa closed 2 months ago

spophale commented 3 months ago

@rjenaa will convert these to offloading tests.

spophale commented 2 months ago

GCC 13.2.1 output for function test:

error: expected identifier or '(' before '&' token 19 | int& ref() { | ^ test_ray3.c: In function 'test_task_depend_lvalue_func': test_ray3.c:36:54: error: 'ref' undeclared (first use in this function) 36 | #pragma omp task depend(out: ref()) | ^~~ test_ray3.c:36:54: note: each undeclared identifier is reported only once for each function it appears in test_ray3.c:38:33: warning: implicit declaration of function 'ref' [-Wimplicit-function-declaration] 38 | ref() = 1; | ^~~ test_ray3.c:38:39: error: lvalue required as left operand of assignment 38 | ref() = 1; | ^