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