diff options
Diffstat (limited to 'flang/test/Semantics/OpenACC/acc-default-none-function.f90')
-rw-r--r-- | flang/test/Semantics/OpenACC/acc-default-none-function.f90 | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/flang/test/Semantics/OpenACC/acc-default-none-function.f90 b/flang/test/Semantics/OpenACC/acc-default-none-function.f90 new file mode 100644 index 0000000..f0a697f --- /dev/null +++ b/flang/test/Semantics/OpenACC/acc-default-none-function.f90 @@ -0,0 +1,20 @@ +! RUN: %python %S/../test_errors.py %s %flang -fopenacc -pedantic + +module mm_acc_rout_function +contains + integer function dosomething(res) + !$acc routine seq + integer :: res + dosomething = res + 1 + end function +end module + +program main + use mm_acc_rout_function + implicit none + integer :: res = 1 + !$acc serial default(none) copy(res) + res = dosomething(res) + !$acc end serial +end program + |