Commit 85d8c05a by Tobias Burnus

Fix declare copyout in libgomp.oacc-c++/declare-pr94120.C

Testing on the host does not make sense for 'declare copyout' for
a same-scope stack-allocated variable. Once the copyout is done,
the variable is gone. Hence, test the variable on the device. This
can be revisit after the OpenACC semantic has been fixed; but with
that fix, the test PASSes again with devices.

        PR middle-end/94120
        * testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
        test case.
parent 79b9d18e
2020-04-20 Tobias Burnus <tobias@codesourcery.com>
PR middle-end/94120
* testsuite/libgomp.oacc-c++/declare-pr94120.C: Fix 'declare copy(out)'
test case.
2020-04-17 Tobias Burnus <tobias@codesourcery.com>
PR middle-end/94635
......
......@@ -35,6 +35,7 @@ f (void)
C[i] = outer::inner::B[i];
}
#pragma acc parallel
for (i = 0; i < N; i++)
{
if (C[i] != i + 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment