blob: baf61950fbd368a2827c550c85cf84c45e4c8202 [file] [log] [blame]
<!DOCTYPE html>
<html>
<meta charset=utf-8>
<meta name="timeout" content="long">
<title>Test structs.</title>
<script src="js/test-harness.js"></script>
<script src="../js/webgpu-functions.js"></script>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
const whlslTests = {};
whlslTests.voidVariable = async () =>
{
await checkFail(
`
void foo() {
void x;
}
`);
}
whlslTests.voidParameter = async () =>
{
await checkFail(
`
void foo(void x) {
}
`);
}
runTests(whlslTests);
</script>
</html>