Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/g++.dg/goacc/reference.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 int | 1 void |
2 test1 (int &ref) | 2 test1 (int &ref) |
3 { | 3 { |
4 #pragma acc kernels copy (ref) | 4 #pragma acc kernels copy (ref) |
5 { | 5 { |
6 ref = 10; | 6 ref = 10; |
7 } | 7 } |
8 } | 8 } |
9 | 9 |
10 int | 10 void |
11 test2 (int &ref) | 11 test2 (int &ref) |
12 { | 12 { |
13 int b; | 13 int b; |
14 #pragma acc kernels copyout (b) | 14 #pragma acc kernels copyout (b) |
15 { | 15 { |