Sign in
chromium
/
external
/
github.com
/
google
/
clspv
/
refs/heads/main
/
.
/
test
/
Structs
/
ptr_in_struct2.cl
blob: 6bcd1ad3b665a7c6d7e511cee1fb0ea10e79028a [
file
] [
log
] [
blame
] [
edit
]
//
RUN
:
clspv -verify
%
s -w
//
expected-no-diagnostics
struct
T
{
global int
*
ptr
;
}
;
struct
T
bar
(
global int
*
out
)
{
struct
T
t
;
t
.
ptr
=
out
;
return
t
;
}
kernel void foo
(
global int
*
out
)
{
struct
T
t
=
bar
(
out
)
;
t
.
ptr
=
42
;
}