aboutsummaryrefslogtreecommitdiff
path: root/flang/test/Lower/CUDA/TODO/cuda-allocate-source-device.cuf
diff options
context:
space:
mode:
Diffstat (limited to 'flang/test/Lower/CUDA/TODO/cuda-allocate-source-device.cuf')
-rw-r--r--flang/test/Lower/CUDA/TODO/cuda-allocate-source-device.cuf9
1 files changed, 9 insertions, 0 deletions
diff --git a/flang/test/Lower/CUDA/TODO/cuda-allocate-source-device.cuf b/flang/test/Lower/CUDA/TODO/cuda-allocate-source-device.cuf
new file mode 100644
index 0000000..3e59e2f
--- /dev/null
+++ b/flang/test/Lower/CUDA/TODO/cuda-allocate-source-device.cuf
@@ -0,0 +1,9 @@
+! RUN: %not_todo_cmd bbc -emit-fir -fcuda -o - %s 2>&1 | FileCheck %s
+
+program main
+ implicit none
+ integer, device, allocatable :: a_d(:)
+ integer, allocatable :: a(:)
+! CHECK: not yet implemented: CUDA Fortran: allocate with device source
+ allocate(a, source=a_d)
+end program