We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2578891 commit 3dd3af8Copy full SHA for 3dd3af8
flang/test/Lower/CUDA/cuda-derived.cuf
@@ -4,12 +4,17 @@ module m1
4
type ty_device
5
integer, device, allocatable, dimension(:) :: x
6
end type
7
+
8
+ type t1; real, device, allocatable :: a(:); end type
9
+ type t2; type(t1) :: b; end type
10
end module
11
12
program main
13
use m1
14
type(ty_device) :: a
15
+ type(t2) :: b
16
end
17
18
! CHECK-LABEL: func.func @_QQmain() attributes {fir.bindc_name = "main"}
19
! CHECK: %{{.*}} = fir.alloca !fir.type<_QMm1Tty_device{x:!fir.box<!fir.heap<!fir.array<?xi32>>>}> {bindc_name = "a", uniq_name = "_QFEa"}
20
+! CHECK: %{{.*}} = fir.alloca !fir.type<_QMm1Tt2{b:!fir.type<_QMm1Tt1{a:!fir.box<!fir.heap<!fir.array<?xf32>>>}>}> {bindc_name = "b", uniq_name = "_QFEb"}
0 commit comments