aboutsummaryrefslogtreecommitdiff
path: root/flang/test/Lower/CUDA/TODO/cuda-allocate-default-init.cuf
diff options
context:
space:
mode:
Diffstat (limited to 'flang/test/Lower/CUDA/TODO/cuda-allocate-default-init.cuf')
-rw-r--r--flang/test/Lower/CUDA/TODO/cuda-allocate-default-init.cuf15
1 files changed, 15 insertions, 0 deletions
diff --git a/flang/test/Lower/CUDA/TODO/cuda-allocate-default-init.cuf b/flang/test/Lower/CUDA/TODO/cuda-allocate-default-init.cuf
new file mode 100644
index 0000000..f68a9aa
--- /dev/null
+++ b/flang/test/Lower/CUDA/TODO/cuda-allocate-default-init.cuf
@@ -0,0 +1,15 @@
+! RUN: %not_todo_cmd bbc -emit-fir -fcuda -o - %s 2>&1 | FileCheck %s
+
+program test
+implicit none
+
+type :: t1
+ real(4) :: x_fin(1:10) = acos(-1.0_4)
+end type t1
+
+type(t1), allocatable, device :: t(:)
+
+! CHECK: not yet implemented: CUDA Fortran: allocate on device with default initialization
+allocate(t(1:2))
+
+end program