/
redgpu
/
clspv
Обзор
Документация
Войти
/
redgpu
/
clspv
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
test/Structs/ptr_in_struct2.cl
17 строк
242 B
alan-baker
Refactor checks about pointers in structs (#470)
08 янв 2020, 00:35
Не верифицирован
08 янв 2020, 00:35
28361f7
Код
Авторство
О чём код?
// 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; }