/
redgpu
/
ispc
Обзор
Документация
Войти
/
redgpu
/
ispc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/lit-tests/err-struct.ispc
27 строк
647 B
Aleksei Nurmukhametov
tests/lit-tests: merge lit-tests checking errors
09 фев 2024, 06:08
09 фев 2024, 06:08
7bbe3c6
Код
Авторство
О чём код?
// RUN: not %{ispc} --target=host --nowrap --nostdlib %s -o - 2>&1 | FileCheck %s // CHECK: Error: "task" qualifier is illegal outside of function declarations struct Foo { task float x; }; // CHECK: Error: Member operator "." can't be applied to declared but not defined struct type struct Foo1; int bar1(Foo1 & foo) { return foo.x; } // CHECK: Error: Member operator "->" can't be applied to declared but not defined struct type struct Foo2; int bar2(Foo2 * uniform foo) { return foo->x; } // CHECK: Error: Can't compute the size of declared but not defined struct type struct Foo6; uniform int bar3() { return sizeof(Foo6); }