/
redgpu
/
ispc
Обзор
Документация
Войти
/
redgpu
/
ispc
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
tests/lit-tests/err-noinline.ispc
18 строк
515 B
Aleksei Nurmukhametov
Error for inline/noinline with var decls
28 июн 2024, 13:58
28 июн 2024, 13:58
b697c65
Код
Авторство
О чём код?
// RUN: not %{ispc} --target=host --nowrap --nostdlib %s -o - 2>&1 | FileCheck %s // CHECK: Error: "noinline" qualifier is illegal outside of function declarations. struct Example { noinline int x; }; // CHECK-COUNT-8: Error: "noinline" qualifier illegal in variable declaration. noinline int x; noinline uniform int w = 0; void foo(noinline int y) { noinline float a, c; noinline varying float b = 0; } noinline int boo(), f, *p; noinline void func() { return; } noinline uniform int64 * uniform p64();